1
1
plugins {
2
+ id ' de.marcphilipp.nexus-publish' version ' 0.2.0'
2
3
id ' io.codearte.nexus-staging' version ' 0.21.0'
3
4
}
4
5
5
6
apply plugin : ' java-library'
6
- apply plugin : ' maven'
7
7
apply plugin : ' signing'
8
8
9
9
group = ' org.algorithm-visualizer'
10
- version = ' 2.3.4 '
10
+ version = ' 2.3.5 '
11
11
sourceCompatibility = 1.8
12
12
13
13
repositories {
@@ -18,65 +18,66 @@ dependencies {
18
18
implementation ' com.google.code.gson:gson:2.8.5'
19
19
}
20
20
21
- task javadocJar (type : Jar ) {
22
- classifier = ' javadoc'
23
- from javadoc
24
- }
25
-
26
21
task sourcesJar (type : Jar ) {
27
22
classifier = ' sources'
28
23
from sourceSets. main. allSource
29
24
}
30
25
31
- artifacts {
32
- archives javadocJar, sourcesJar
26
+ task javadocJar (type : Jar ) {
27
+ classifier = ' javadoc'
28
+ from javadoc
29
+ }
30
+
31
+ allprojects {
32
+ ext. ' signing.keyId' = System . getenv(' SIGNING_KEY_ID' )
33
+ ext. ' signing.password' = System . getenv(' SIGNING_PASSWORD' )
34
+ ext. ' signing.secretKeyRingFile' = ' pubring.gpg'
33
35
}
34
36
35
37
signing {
36
- sign configurations . archives
38
+ sign publishing . publications
37
39
}
38
40
39
- uploadArchives {
40
- repositories {
41
- mavenDeployer {
42
- beforeDeployment { MavenDeployment deployment -> signing. signPom(deployment) }
43
-
44
- repository(url : " https://oss.sonatype.org/service/local/staging/deploy/maven2/" ) {
45
- authentication(userName : ossrhUsername, password : ossrhPassword)
46
- }
47
-
48
- snapshotRepository(url : " https://oss.sonatype.org/content/repositories/snapshots/" ) {
49
- authentication(userName : ossrhUsername, password : ossrhPassword)
50
- }
41
+ nexusStaging {
42
+ username = System . getenv(' OSSRH_USERNAME' )
43
+ password = System . getenv(' OSSRH_PASSWORD' )
44
+ packageGroup = ' org.algorithm-visualizer'
45
+ stagingProfileId = " bf87e8672f1be7"
46
+ }
51
47
52
- pom. project {
53
- name ' tracers.java'
48
+ publishing {
49
+ publications {
50
+ mavenJava(MavenPublication ) {
51
+ from components. java
52
+ artifact sourcesJar
53
+ artifact javadocJar
54
+ pom {
54
55
packaging ' jar'
55
- // optionally artifactId can be defined here
56
- description ' Visualization Library for Java'
57
- url ' https://github.com/algorithm-visualizer/tracers.java'
56
+ name = ' tracers.java '
57
+ description = ' Visualization Library for Java'
58
+ url = ' https://github.com/algorithm-visualizer/tracers.java'
58
59
59
60
scm {
60
- connection ' scm:git:git@github.com:algorithm-visualizer/tracers.java.git'
61
- developerConnection ' scm:git:git@github.com:algorithm-visualizer/tracers.java.git'
62
- url ' https://github.com/algorithm-visualizer/tracers.java'
61
+ connection = ' scm:git:git@github.com:algorithm-visualizer/tracers.java.git'
62
+ developerConnection = ' scm:git:git@github.com:algorithm-visualizer/tracers.java.git'
63
+ url = ' https://github.com/algorithm-visualizer/tracers.java'
63
64
}
64
65
65
66
licenses {
66
67
license {
67
- name ' The MIT License (MIT)'
68
- url ' http://opensource.org/licenses/MIT'
68
+ name = ' The MIT License (MIT)'
69
+ url = ' http://opensource.org/licenses/MIT'
69
70
}
70
71
}
71
72
72
73
developers {
73
74
developer {
74
- id ' parkjs814'
75
- name ' Jinseo Jason Park'
76
- email ' jason.park@gatech.edu'
75
+ id = ' parkjs814'
76
+ name = ' Jinseo Jason Park'
77
+ email = ' jason.park@gatech.edu'
77
78
}
78
79
}
79
80
}
80
81
}
81
82
}
82
- }
83
+ }
0 commit comments