File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,15 +2,14 @@ plugins {
22 id(" java" )
33 id(" java-gradle-plugin" )
44 id(" maven-publish" )
5- id(" io.github.gradle-nexus.publish-plugin" ).version(" 1.1.0" )
65}
76
87subprojects {
98 apply (plugin = " maven-publish" )
109}
1110
1211group = " dev.socialbooster.gradle"
13- version = " 1.5.2-SNAPSHOT "
12+ version = " 1.5.2"
1413
1514val rootPackage = " ${project.group} .${project.name.toLowerCase()} "
1615
@@ -49,25 +48,23 @@ java {
4948 }
5049}
5150
52- // For a test. Publish to local maven repository
53- // publishing {
54- // publications {
55- // create<MavenPublication>("reactiveapi") {
56- // from(components["java"])
57- // }
58- // }
59- // repositories {
60- // mavenLocal()
61- // }
62- // }
63-
64- nexusPublishing {
51+ publishing {
52+ publications {
53+ create<MavenPublication >(" mavenJava" ) {
54+ from(components[" java" ])
55+ artifact(tasks[" sourcesJar" ])
56+ artifact(tasks[" javadocJar" ])
57+ artifactId = " reactiveapi"
58+ }
59+ }
6560 repositories {
66- create(" myNexus" ) {
67- nexusUrl.set(uri(" https://repo.animecraft.fun/" ))
68- snapshotRepositoryUrl.set(uri(" https://repo.animecraft.fun/repository/maven-snapshots/" ))
69- username.set(System .getenv(" NEXUS_USERNAME" ))
70- password.set(System .getenv(" NEXUS_PASSWORD" ))
61+ maven {
62+ name = " BillmarsSoft"
63+ url = uri(" https://repo.billmarssoft.com/releases/" )
64+ credentials {
65+ username = System .getenv(" REPOSITORY_USERNAME" )
66+ password = System .getenv(" REPOSITORY_PASSWORD" )
67+ }
7168 }
7269 }
7370}
You can’t perform that action at this time.
0 commit comments