File tree 2 files changed +15
-10
lines changed
2 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 1
1
plugins {
2
2
id ' java-library'
3
3
id ' org.dmfs.gver' version ' 0.18.0'
4
+ id ' io.github.gradle-nexus.publish-plugin' version ' 1.1.0' apply false
4
5
}
5
6
6
7
sourceCompatibility = JavaVersion . VERSION_1_8
@@ -56,6 +57,19 @@ allprojects {
56
57
}
57
58
}
58
59
60
+ if (project. hasProperty(' SONATYPE_USERNAME' ) && project. hasProperty(' SONATYPE_PASSWORD' )) {
61
+ apply plugin : ' io.github.gradle-nexus.publish-plugin'
62
+
63
+ nexusPublishing {
64
+ repositories {
65
+ sonatype {
66
+ username = SONATYPE_USERNAME
67
+ password = SONATYPE_PASSWORD
68
+ }
69
+ }
70
+ }
71
+ }
72
+
59
73
dependencies {
60
74
testImplementation ' org.junit.jupiter:junit-jupiter-api:5.9.0'
61
75
testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine:5.9.0'
Original file line number Diff line number Diff line change @@ -14,16 +14,6 @@ if (project.hasProperty('SONATYPE_USERNAME') && project.hasProperty('SONATYPE_PA
14
14
}
15
15
16
16
publishing {
17
- repositories {
18
- maven {
19
- name ' release'
20
- url RELEASE_REPOSITORY
21
- credentials {
22
- username SONATYPE_USERNAME
23
- password SONATYPE_PASSWORD
24
- }
25
- }
26
- }
27
17
28
18
publications {
29
19
jar(MavenPublication ) {
@@ -61,6 +51,7 @@ if (project.hasProperty('SONATYPE_USERNAME') && project.hasProperty('SONATYPE_PA
61
51
}
62
52
63
53
signing {
54
+ useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
64
55
sign publishing. publications
65
56
}
66
57
}
You can’t perform that action at this time.
0 commit comments