Skip to content

Commit

Permalink
release: 1.2.8 (#126)
Browse files Browse the repository at this point in the history
* 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
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 101 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/publish-release-maven.yml

This file was deleted.

153 changes: 79 additions & 74 deletions build.gradle
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'
}
Expand All @@ -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'
Expand All @@ -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
Expand All @@ -113,10 +126,6 @@ jacocoTestReport {
}
}

wrapper {
gradleVersion = '6.2.0'
}

spotless {
java {
target fileTree(projectDir) {
Expand All @@ -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'
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rootProject.name = 'java-crypto'
rootProject.name = 'crypto'

0 comments on commit 7389608

Please sign in to comment.