Skip to content

Commit 624ce10

Browse files
authored
Merge pull request #11 from sbooster/development
development3
2 parents 7b86823 + 92f2324 commit 624ce10

1 file changed

Lines changed: 17 additions & 20 deletions

File tree

build.gradle.kts

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff 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

87
subprojects {
98
apply(plugin = "maven-publish")
109
}
1110

1211
group = "dev.socialbooster.gradle"
13-
version = "1.5.2-SNAPSHOT"
12+
version = "1.5.2"
1413

1514
val 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
}

0 commit comments

Comments
 (0)