11plugins {
2+ id ' de.marcphilipp.nexus-publish' version ' 0.2.0'
23 id ' io.codearte.nexus-staging' version ' 0.21.0'
34}
45
56apply plugin : ' java-library'
6- apply plugin : ' maven'
77apply plugin : ' signing'
88
99group = ' org.algorithm-visualizer'
10- version = ' 2.3.4 '
10+ version = ' 2.3.5 '
1111sourceCompatibility = 1.8
1212
1313repositories {
@@ -18,65 +18,66 @@ dependencies {
1818 implementation ' com.google.code.gson:gson:2.8.5'
1919}
2020
21- task javadocJar (type : Jar ) {
22- classifier = ' javadoc'
23- from javadoc
24- }
25-
2621task sourcesJar (type : Jar ) {
2722 classifier = ' sources'
2823 from sourceSets. main. allSource
2924}
3025
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'
3335}
3436
3537signing {
36- sign configurations . archives
38+ sign publishing . publications
3739}
3840
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+ }
5147
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 {
5455 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'
5859
5960 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'
6364 }
6465
6566 licenses {
6667 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'
6970 }
7071 }
7172
7273 developers {
7374 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'
7778 }
7879 }
7980 }
8081 }
8182 }
82- }
83+ }
0 commit comments