-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: remove github action maven * chore: operational gradle with oss.nexus repos
- Loading branch information
Kristjan Kosic
authored
Mar 20, 2020
1 parent
d414fcd
commit 7389608
Showing
3 changed files
with
80 additions
and
101 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
plugins { | ||
id 'java' | ||
id 'maven' | ||
id 'maven-publish' | ||
id 'signing' | ||
id 'jacoco' | ||
id 'com.diffplug.gradle.spotless' version '3.27.2' | ||
} | ||
|
@@ -10,9 +12,6 @@ repositories { | |
mavenCentral() | ||
} | ||
|
||
group = 'org.arkecosystem' | ||
version = '1.2.3' | ||
|
||
dependencies { | ||
compile group: 'org.bitcoinj', name: 'bitcoinj-core', version: '0.15.8' | ||
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.6' | ||
|
@@ -22,82 +21,96 @@ dependencies { | |
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.6.0' | ||
} | ||
|
||
publishing { | ||
task javadocJar(type: Jar) { | ||
classifier = 'javadoc' | ||
from javadoc | ||
} | ||
|
||
task sourcesJar(type: Jar) { | ||
classifier = 'sources' | ||
from sourceSets.main.allSource | ||
} | ||
|
||
artifacts { | ||
archives javadocJar, sourcesJar | ||
} | ||
|
||
uploadArchives { | ||
repositories { | ||
jcenter() | ||
mavenCentral() { | ||
name = "MavenRepo" | ||
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2") | ||
credentials { | ||
username = System.getenv("MVN_USERNAME") | ||
password = System.getenv("MVN_PASSWORD") | ||
} | ||
} | ||
mavenDeployer { | ||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | ||
|
||
maven { | ||
name = "github" | ||
url = uri("https://maven.pkg.github.com/arkecosystem/java-crypto") | ||
credentials { | ||
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME") | ||
password = project.findProperty("gpr.key") ?: System.getenv("PASSWORD") | ||
} | ||
} | ||
repository(url: "file://${buildDir}/repo") {} | ||
|
||
publications { | ||
gpr(MavenPublication) { | ||
from(components.java) | ||
} | ||
mavenJava(MavenPublication) { | ||
artifactId = 'java-crypto' | ||
from(components.java) | ||
pom { | ||
name = 'java-crypto' | ||
versionMapping { | ||
usage('java-api') { | ||
fromResolutionOf('runtimeClasspath') | ||
} | ||
usage('java-runtime') { | ||
fromResolutionResult() | ||
} | ||
// repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") { | ||
// authentication(userName: '', password: '') | ||
//} | ||
|
||
// snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") { | ||
// authentication(userName: ossrhUsername, password: ossrhPassword) | ||
// } | ||
|
||
pom.project { | ||
groupId = 'org.arkecosystem' | ||
version = '1.2.8' | ||
artifactId = 'crypto' | ||
|
||
name = 'java-crypto' | ||
description = 'A Simple Cryptography Implementation in Java for the ARK CORE Blockchain Framework.' | ||
url = 'https://sdk.ark.dev/java/crypto' | ||
inceptionYear = '2018' | ||
|
||
licenses { | ||
license { | ||
name = 'MIT' | ||
distribution = 'repo' | ||
} | ||
description = 'A Lightweight ARK Core JAVA Crypto SDK Library' | ||
url = 'https://sdk.ark.dev/java/crypto' | ||
licenses { | ||
license { | ||
name = 'MIT License' | ||
url = 'https://github.com/ArkEcosystem/java-crypto/blob/master/LICENSE' | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
name = 'Kovač Žan' | ||
email = '[email protected]' | ||
organization = 'ARK Ecosystem' | ||
organizationUrl = 'https://ark.io' | ||
} | ||
developer { | ||
name = 'Kristjan Košič' | ||
email = '[email protected]' | ||
organization = 'ARK Ecosystem' | ||
organizationUrl = 'https://ark.io' | ||
} | ||
developers { | ||
developer { | ||
id = 'kovaczan' | ||
name = 'Žan Kovač' | ||
email = '[email protected]' | ||
} | ||
developer { | ||
id = 'kristjank' | ||
name = 'Kristjan Košič' | ||
email = '[email protected]' | ||
} | ||
developer { | ||
name = 'Brian Faust' | ||
email = '[email protected]' | ||
organization = 'ARK Ecosystem' | ||
organizationUrl = 'https://ark.io' | ||
} | ||
scm { | ||
connection = 'scm:git:git://github.com/arkecosystem/java-crypto.git' | ||
developerConnection = 'scm:git:ssh://github.com/arkecosystem/java-crypto.git' | ||
url = 'https://sdk.ark.dev/java/crypto' | ||
developer { | ||
name = 'Joshua Noack' | ||
email = '[email protected]' | ||
organization = 'ARK Ecosystem' | ||
organizationUrl = 'https://ark.io' | ||
} | ||
} | ||
|
||
scm { | ||
connection = 'scm:git:git://github.com/ArkEcosystem/java-crypto.git' | ||
developerConnection = 'scm:git:ssh://github.com:ArkEcosystem/java-crypto.git' | ||
url = 'https://github.com/ArkEcosystem/java-crypto/tree/1.2.8' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
javadoc { | ||
if (JavaVersion.current().isJava9Compatible()) { | ||
options.addBooleanOption('html5', true) | ||
if (project.hasProperty("signing.keyId")) { | ||
apply plugin: 'signing' | ||
signing { | ||
sign configurations.archives | ||
} | ||
} | ||
|
||
|
||
test { | ||
useJUnitPlatform() | ||
failFast = true | ||
|
@@ -113,10 +126,6 @@ jacocoTestReport { | |
} | ||
} | ||
|
||
wrapper { | ||
gradleVersion = '6.2.0' | ||
} | ||
|
||
spotless { | ||
java { | ||
target fileTree(projectDir) { | ||
|
@@ -142,12 +151,8 @@ task fatJar(type: Jar) { | |
with jar | ||
} | ||
|
||
task javadocJar(type: Jar) { | ||
from javadoc | ||
} | ||
build.dependsOn 'spotlessApply' | ||
|
||
task sourcesJar(type: Jar) { | ||
from sourceSets.main.allSource | ||
wrapper { | ||
gradleVersion = '6.2.0' | ||
} | ||
|
||
build.dependsOn 'spotlessApply' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
rootProject.name = 'java-crypto' | ||
rootProject.name = 'crypto' |