Skip to content

Commit c5da9f1

Browse files
spkjpfaustbrian
authored andcommitted
chore: build.gradle update (#14)
1 parent 606f31e commit c5da9f1

2 files changed

Lines changed: 31 additions & 23 deletions

File tree

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
language: java
22

3+
install:
4+
- true
5+
36
jdk:
47
- oraclejdk8
58
- oraclejdk9

build.gradle

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,37 @@ repositories {
1616
mavenCentral()
1717
}
1818

19-
task sourceJar(type: Jar) {
20-
from sourceSets.main.allJava
21-
classifier "sources"
22-
}
23-
2419
task javadocJar(type: Jar) {
2520
classifier = 'javadoc'
26-
from javadoc.destinationDir
21+
from javadoc
22+
}
23+
24+
task sourcesJar(type: Jar) {
25+
classifier = 'sources'
26+
from sourceSets.main.allSource
2727
}
2828

29-
publishing {
30-
publications {
31-
arkEcosystem(MavenPublication) {
32-
from components.java
33-
artifact sourceJar
34-
artifact javadocJar
29+
artifacts {
30+
archives javadocJar, sourcesJar
31+
}
32+
33+
uploadArchives {
34+
repositories {
35+
mavenDeployer {
36+
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
37+
38+
// repository(url: "file://${buildDir}/repo") {}
3539

36-
pom {
37-
groupId = 'org.arkecosystem.crypto'
40+
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") {
41+
authentication(userName: '', password: '')
42+
}
43+
44+
// snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
45+
// authentication(userName: ossrhUsername, password: ossrhPassword)
46+
// }
47+
48+
pom.project {
49+
groupId = 'org.arkecosystem'
3850
version = '0.1.0'
3951
artifactId = 'arkecosystem-crypto'
4052

@@ -68,22 +80,15 @@ publishing {
6880
scm {
6981
connection = 'scm:git:git://github.com/ArkEcosystem/java-crypto.git'
7082
developerConnection = 'scm:git:ssh://github.com:ArkEcosystem/java-crypto.git'
71-
url = 'https://github.com/ArkEcosystem/java-crypto/tree/master'
83+
url = 'https://github.com/ArkEcosystem/java-crypto/tree/0.1.0'
7284
}
7385
}
7486
}
7587
}
76-
77-
repositories {
78-
maven {
79-
name = 'myRepo'
80-
url = "file://${buildDir}/repo"
81-
}
82-
}
8388
}
8489

8590
signing {
86-
sign publishing.publications.arkEcosystem
91+
sign configurations.archives
8792
}
8893

8994
dependencies {

0 commit comments

Comments
 (0)