From 6dffd56194e77be20bbad9b9e72e17d3f90bda44 Mon Sep 17 00:00:00 2001 From: trobro Date: Sun, 13 Aug 2023 15:03:39 +0200 Subject: [PATCH] v3.0.1 (#32) --- .github/workflows/build.yml | 2 +- .travis.yml | 24 ------- build.gradle | 53 +++++++++++++-- docs/allclasses-frame.html | 2 +- docs/allclasses-noframe.html | 2 +- docs/constant-values.html | 4 +- docs/deprecated-list.html | 4 +- docs/help-doc.html | 4 +- docs/index-all.html | 4 +- docs/index.html | 2 +- docs/org/hjson/HjsonDsf.html | 4 +- docs/org/hjson/HjsonOptions.html | 4 +- docs/org/hjson/IHjsonDsfProvider.html | 4 +- docs/org/hjson/JsonArray.html | 4 +- docs/org/hjson/JsonObject.Member.html | 4 +- docs/org/hjson/JsonObject.html | 4 +- docs/org/hjson/JsonType.html | 4 +- docs/org/hjson/JsonValue.html | 4 +- docs/org/hjson/ParseException.html | 4 +- docs/org/hjson/Stringify.html | 4 +- docs/org/hjson/package-frame.html | 2 +- docs/org/hjson/package-summary.html | 4 +- docs/org/hjson/package-tree.html | 4 +- docs/overview-tree.html | 4 +- docs/serialized-form.html | 4 +- gradle-mvn-push.gradle | 94 --------------------------- gradle.properties | 23 ++----- history.md | 3 + 28 files changed, 96 insertions(+), 183 deletions(-) delete mode 100644 .travis.yml delete mode 100644 gradle-mvn-push.gradle diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fdc68a9..642b708 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,7 @@ name: Publish hjson-java releases on Maven on: release: - types: [published] + types: [created] jobs: publish: runs-on: ubuntu-latest diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d17f429..0000000 --- a/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -language: java -jdk: -- openjdk8 -- openjdk11 -env: - global: - secure: -script: -- gradle build -before_deploy: -- cd cli -- gradle zip -- mv build/zip/hjson.zip build/zip/hjson-${TRAVIS_TAG}.zip -- cd .. -deploy: - provider: releases - file: cli/build/zip/hjson-${TRAVIS_TAG}.zip - overwrite: true - skip_cleanup: true - on: - tags: true - jdk: oraclejdk8 - api-key: - secure: WB5LNxdwTPB1qn1/CKW9LkJ5R+LrXOK76vf5JdQsoYqGiu6YsxzDE4sedfJQvUOjl4lhlZkmGVeMjKXKyFIxcCwkfu5cRm8XqutoaRNc8s6ynHhkzhX2GNCTvZoUvF3Idvud6lacHSLn46buDlytOFMC7WzUWNvqrVZkP+XCkYo= diff --git a/build.gradle b/build.gradle index e986a49..63a6809 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,8 @@ -apply plugin: 'java' - -group = 'org.hjson' -description = """Hjson, the Human JSON.""" +plugins { + id 'java' + id 'maven-publish' + id 'signing' +} java { sourceCompatibility = JavaVersion.VERSION_1_8 @@ -55,4 +56,46 @@ task(testSuite, dependsOn: ['classes','testClasses'], type: JavaExec) { test.dependsOn testSuite -//apply from: 'gradle-mvn-push.gradle' +publishing { + publications { + maven(MavenPublication) { + from components.java + pom { + description = project.description + url = "https://github.com/hjson/hjson-java" + licenses { + license { + name = "The MIT License (MIT)" + url = "https://github.com/hjson/hjson-java/blob/master/LICENSE" + distribution = "repo" + } + } + developers { + developer { + id = "laktak" + name = "Christian Zangl" + } + } + scm { + connection = "scm:git@github.com:hjson/hjson-java.git" + developerConnection = "scm:git@github.com:hjson/hjson-java.git" + url = "https://github.com/hjson/hjson-java" + } + } + } + } + repositories { + maven { + name = "OSSRH" + url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" + credentials { + username = System.getenv("MAVEN_USERNAME") + password = System.getenv("MAVEN_PASSWORD") + } + } + } +} + +// signing { +// sign publishing.publications.maven +// } diff --git a/docs/allclasses-frame.html b/docs/allclasses-frame.html index a666f45..70a7f4d 100644 --- a/docs/allclasses-frame.html +++ b/docs/allclasses-frame.html @@ -3,7 +3,7 @@ -All Classes (hjson API) +All Classes (hjson 3.0.1 API) diff --git a/docs/allclasses-noframe.html b/docs/allclasses-noframe.html index e01649a..6a34fcf 100644 --- a/docs/allclasses-noframe.html +++ b/docs/allclasses-noframe.html @@ -3,7 +3,7 @@ -All Classes (hjson API) +All Classes (hjson 3.0.1 API) diff --git a/docs/constant-values.html b/docs/constant-values.html index fb6dfb9..cd87fbb 100644 --- a/docs/constant-values.html +++ b/docs/constant-values.html @@ -3,7 +3,7 @@ -Constant Field Values (hjson API) +Constant Field Values (hjson 3.0.1 API) @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ diff --git a/docs/org/hjson/package-summary.html b/docs/org/hjson/package-summary.html index 54a3ce5..fc4b8e8 100644 --- a/docs/org/hjson/package-summary.html +++ b/docs/org/hjson/package-summary.html @@ -3,7 +3,7 @@ -org.hjson (hjson API) +org.hjson (hjson 3.0.1 API) @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@