Skip to content

Commit 7389608

Browse files
author
Kristjan Kosic
authored
release: 1.2.8 (#126)
* chore: remove github action maven * chore: operational gradle with oss.nexus repos
1 parent d414fcd commit 7389608

File tree

3 files changed

+80
-101
lines changed

3 files changed

+80
-101
lines changed

.github/workflows/publish-release-maven.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

build.gradle

Lines changed: 79 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
plugins {
22
id 'java'
3+
id 'maven'
34
id 'maven-publish'
5+
id 'signing'
46
id 'jacoco'
57
id 'com.diffplug.gradle.spotless' version '3.27.2'
68
}
@@ -10,9 +12,6 @@ repositories {
1012
mavenCentral()
1113
}
1214

13-
group = 'org.arkecosystem'
14-
version = '1.2.3'
15-
1615
dependencies {
1716
compile group: 'org.bitcoinj', name: 'bitcoinj-core', version: '0.15.8'
1817
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.6'
@@ -22,82 +21,96 @@ dependencies {
2221
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.6.0'
2322
}
2423

25-
publishing {
24+
task javadocJar(type: Jar) {
25+
classifier = 'javadoc'
26+
from javadoc
27+
}
28+
29+
task sourcesJar(type: Jar) {
30+
classifier = 'sources'
31+
from sourceSets.main.allSource
32+
}
33+
34+
artifacts {
35+
archives javadocJar, sourcesJar
36+
}
37+
38+
uploadArchives {
2639
repositories {
27-
jcenter()
28-
mavenCentral() {
29-
name = "MavenRepo"
30-
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2")
31-
credentials {
32-
username = System.getenv("MVN_USERNAME")
33-
password = System.getenv("MVN_PASSWORD")
34-
}
35-
}
40+
mavenDeployer {
41+
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
3642

37-
maven {
38-
name = "github"
39-
url = uri("https://maven.pkg.github.com/arkecosystem/java-crypto")
40-
credentials {
41-
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
42-
password = project.findProperty("gpr.key") ?: System.getenv("PASSWORD")
43-
}
44-
}
43+
repository(url: "file://${buildDir}/repo") {}
4544

46-
publications {
47-
gpr(MavenPublication) {
48-
from(components.java)
49-
}
50-
mavenJava(MavenPublication) {
51-
artifactId = 'java-crypto'
52-
from(components.java)
53-
pom {
54-
name = 'java-crypto'
55-
versionMapping {
56-
usage('java-api') {
57-
fromResolutionOf('runtimeClasspath')
58-
}
59-
usage('java-runtime') {
60-
fromResolutionResult()
61-
}
45+
// repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") {
46+
// authentication(userName: '', password: '')
47+
//}
48+
49+
// snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
50+
// authentication(userName: ossrhUsername, password: ossrhPassword)
51+
// }
52+
53+
pom.project {
54+
groupId = 'org.arkecosystem'
55+
version = '1.2.8'
56+
artifactId = 'crypto'
57+
58+
name = 'java-crypto'
59+
description = 'A Simple Cryptography Implementation in Java for the ARK CORE Blockchain Framework.'
60+
url = 'https://sdk.ark.dev/java/crypto'
61+
inceptionYear = '2018'
62+
63+
licenses {
64+
license {
65+
name = 'MIT'
66+
distribution = 'repo'
6267
}
63-
description = 'A Lightweight ARK Core JAVA Crypto SDK Library'
64-
url = 'https://sdk.ark.dev/java/crypto'
65-
licenses {
66-
license {
67-
name = 'MIT License'
68-
url = 'https://github.com/ArkEcosystem/java-crypto/blob/master/LICENSE'
69-
}
68+
}
69+
70+
developers {
71+
developer {
72+
name = 'Kovač Žan'
73+
74+
organization = 'ARK Ecosystem'
75+
organizationUrl = 'https://ark.io'
76+
}
77+
developer {
78+
name = 'Kristjan Košič'
79+
80+
organization = 'ARK Ecosystem'
81+
organizationUrl = 'https://ark.io'
7082
}
71-
developers {
72-
developer {
73-
id = 'kovaczan'
74-
name = 'Žan Kovač'
75-
76-
}
77-
developer {
78-
id = 'kristjank'
79-
name = 'Kristjan Košič'
80-
81-
}
83+
developer {
84+
name = 'Brian Faust'
85+
86+
organization = 'ARK Ecosystem'
87+
organizationUrl = 'https://ark.io'
8288
}
83-
scm {
84-
connection = 'scm:git:git://github.com/arkecosystem/java-crypto.git'
85-
developerConnection = 'scm:git:ssh://github.com/arkecosystem/java-crypto.git'
86-
url = 'https://sdk.ark.dev/java/crypto'
89+
developer {
90+
name = 'Joshua Noack'
91+
92+
organization = 'ARK Ecosystem'
93+
organizationUrl = 'https://ark.io'
8794
}
8895
}
96+
97+
scm {
98+
connection = 'scm:git:git://github.com/ArkEcosystem/java-crypto.git'
99+
developerConnection = 'scm:git:ssh://github.com:ArkEcosystem/java-crypto.git'
100+
url = 'https://github.com/ArkEcosystem/java-crypto/tree/1.2.8'
101+
}
89102
}
90103
}
91104
}
92105
}
93106

94-
javadoc {
95-
if (JavaVersion.current().isJava9Compatible()) {
96-
options.addBooleanOption('html5', true)
107+
if (project.hasProperty("signing.keyId")) {
108+
apply plugin: 'signing'
109+
signing {
110+
sign configurations.archives
97111
}
98112
}
99113

100-
101114
test {
102115
useJUnitPlatform()
103116
failFast = true
@@ -113,10 +126,6 @@ jacocoTestReport {
113126
}
114127
}
115128

116-
wrapper {
117-
gradleVersion = '6.2.0'
118-
}
119-
120129
spotless {
121130
java {
122131
target fileTree(projectDir) {
@@ -142,12 +151,8 @@ task fatJar(type: Jar) {
142151
with jar
143152
}
144153

145-
task javadocJar(type: Jar) {
146-
from javadoc
147-
}
154+
build.dependsOn 'spotlessApply'
148155

149-
task sourcesJar(type: Jar) {
150-
from sourceSets.main.allSource
156+
wrapper {
157+
gradleVersion = '6.2.0'
151158
}
152-
153-
build.dependsOn 'spotlessApply'

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
rootProject.name = 'java-crypto'
1+
rootProject.name = 'crypto'

0 commit comments

Comments
 (0)