Skip to content

Commit

Permalink
Changes for Maven Central
Browse files Browse the repository at this point in the history
  • Loading branch information
shifteverywhere committed Oct 19, 2022
1 parent f632bda commit 9a51744
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGES

## Version 1.2.1 - 2022-10-19
- Minor clean up and fixes
- Adds alien (cross platform) unit tests
- First publish to Maven Central (updated build.gradle)

## Version 1.2.0 - 2022-10-11
- Full implementation of DiME data format specification (v1)
- Grace period added to Dime as a global setting (this means breaking changes from 1.1.0 in verify methods)
Expand Down
74 changes: 72 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// build.gradle
// Di:ME - Data Identity Message Envelope
// DiME - Data Identity Message Envelope
// A powerful universal data format that is built for secure, and integrity protected communication between trusted
// entities in a network.
//
Expand All @@ -10,12 +10,16 @@
plugins {
id 'java-library'
id "org.sonarqube" version "3.4.0.2513"
id 'maven-publish'
id 'signing'
}

group 'io.dimeformat'
version '1.2.0'
version '1.2.1'
description 'DiME (Data Integrity Message Envelope). A powerful universal data format that is built for secure, and integrity protected communication between trusted entities in a network using an application-based publik-key infrastructure (APKI).'

repositories {
mavenLocal()
mavenCentral()
}

Expand All @@ -28,6 +32,10 @@ dependencies {
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
}

subprojects {
tasks.withType(Javadoc).all { enabled = false }
}

test {
useJUnitPlatform()
}
Expand All @@ -39,3 +47,65 @@ tasks.named('jar') {
}
}

java {
withSourcesJar()
withJavadocJar()
}

tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}

publishing {
publications {

mavenJava(MavenPublication) {

groupId = 'io.dimeformat'
artifactId = 'dime-java-ref'
version = '1.2.1'

from components.java

pom {
name = 'DiME'
description = 'DiME (Data Integrity Message Envelope). A powerful universal data format that is built for secure, and integrity protected communication between trusted entities in a network using an application-based publik-key infrastructure (APKI).'
url = 'https://docs.dimeformat.io'

licenses {
license {
name = 'MIT License'
url = 'http://www.opensource.org/licenses/mit-license.php'
}
}
developers {
developer {
id = 'shifteverywhere'
name = 'Niclas Kjellin'
email = 'niclas@shifteverywhere.com'
}
}
scm {
connection = 'scm:git:git://github.com/shifteverywhere/dime-java-ref.git'
developerConnection = 'scm:git:ssh://github.com/shifteverywhere/dime-java-ref.git'
url = 'http://github.com/shifteverywhere/dime-java-ref'
}
}
}
}

repositories {
maven {
name = 'OSSRH'
url = 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
credentials {
username = project.properties["ossrUsername"]
password = project.properties["ossrPassport"]
}
}
}
}

signing {
sign publishing.publications.mavenJava
}

0 comments on commit 9a51744

Please sign in to comment.