Skip to content

Commit 6dffd56

Browse files
authored
v3.0.1 (#32)
1 parent a118976 commit 6dffd56

28 files changed

+96
-183
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Publish hjson-java releases on Maven
22
on:
33
release:
4-
types: [published]
4+
types: [created]
55
jobs:
66
publish:
77
runs-on: ubuntu-latest

.travis.yml

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

build.gradle

Lines changed: 48 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
apply plugin: 'java'
2-
3-
group = 'org.hjson'
4-
description = """Hjson, the Human JSON."""
1+
plugins {
2+
id 'java'
3+
id 'maven-publish'
4+
id 'signing'
5+
}
56

67
java {
78
sourceCompatibility = JavaVersion.VERSION_1_8
@@ -55,4 +56,46 @@ task(testSuite, dependsOn: ['classes','testClasses'], type: JavaExec) {
5556

5657
test.dependsOn testSuite
5758

58-
//apply from: 'gradle-mvn-push.gradle'
59+
publishing {
60+
publications {
61+
maven(MavenPublication) {
62+
from components.java
63+
pom {
64+
description = project.description
65+
url = "https://github.com/hjson/hjson-java"
66+
licenses {
67+
license {
68+
name = "The MIT License (MIT)"
69+
url = "https://github.com/hjson/hjson-java/blob/master/LICENSE"
70+
distribution = "repo"
71+
}
72+
}
73+
developers {
74+
developer {
75+
id = "laktak"
76+
name = "Christian Zangl"
77+
}
78+
}
79+
scm {
80+
connection = "scm:[email protected]:hjson/hjson-java.git"
81+
developerConnection = "scm:[email protected]:hjson/hjson-java.git"
82+
url = "https://github.com/hjson/hjson-java"
83+
}
84+
}
85+
}
86+
}
87+
repositories {
88+
maven {
89+
name = "OSSRH"
90+
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
91+
credentials {
92+
username = System.getenv("MAVEN_USERNAME")
93+
password = System.getenv("MAVEN_PASSWORD")
94+
}
95+
}
96+
}
97+
}
98+
99+
// signing {
100+
// sign publishing.publications.maven
101+
// }

docs/allclasses-frame.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<html lang="en">
44
<head>
55
<!-- Generated by javadoc -->
6-
<title>All Classes (hjson API)</title>
6+
<title>All Classes (hjson 3.0.1 API)</title>
77
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
88
<script type="text/javascript" src="script.js"></script>
99
</head>

docs/allclasses-noframe.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<html lang="en">
44
<head>
55
<!-- Generated by javadoc -->
6-
<title>All Classes (hjson API)</title>
6+
<title>All Classes (hjson 3.0.1 API)</title>
77
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
88
<script type="text/javascript" src="script.js"></script>
99
</head>

docs/constant-values.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
<html lang="en">
44
<head>
55
<!-- Generated by javadoc -->
6-
<title>Constant Field Values (hjson API)</title>
6+
<title>Constant Field Values (hjson 3.0.1 API)</title>
77
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
88
<script type="text/javascript" src="script.js"></script>
99
</head>
1010
<body>
1111
<script type="text/javascript"><!--
1212
try {
1313
if (location.href.indexOf('is-external=true') == -1) {
14-
parent.document.title="Constant Field Values (hjson API)";
14+
parent.document.title="Constant Field Values (hjson 3.0.1 API)";
1515
}
1616
}
1717
catch(err) {

docs/deprecated-list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
<html lang="en">
44
<head>
55
<!-- Generated by javadoc -->
6-
<title>Deprecated List (hjson API)</title>
6+
<title>Deprecated List (hjson 3.0.1 API)</title>
77
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
88
<script type="text/javascript" src="script.js"></script>
99
</head>
1010
<body>
1111
<script type="text/javascript"><!--
1212
try {
1313
if (location.href.indexOf('is-external=true') == -1) {
14-
parent.document.title="Deprecated List (hjson API)";
14+
parent.document.title="Deprecated List (hjson 3.0.1 API)";
1515
}
1616
}
1717
catch(err) {

docs/help-doc.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
<html lang="en">
44
<head>
55
<!-- Generated by javadoc -->
6-
<title>API Help (hjson API)</title>
6+
<title>API Help (hjson 3.0.1 API)</title>
77
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
88
<script type="text/javascript" src="script.js"></script>
99
</head>
1010
<body>
1111
<script type="text/javascript"><!--
1212
try {
1313
if (location.href.indexOf('is-external=true') == -1) {
14-
parent.document.title="API Help (hjson API)";
14+
parent.document.title="API Help (hjson 3.0.1 API)";
1515
}
1616
}
1717
catch(err) {

docs/index-all.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
<html lang="en">
44
<head>
55
<!-- Generated by javadoc -->
6-
<title>Index (hjson API)</title>
6+
<title>Index (hjson 3.0.1 API)</title>
77
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
88
<script type="text/javascript" src="script.js"></script>
99
</head>
1010
<body>
1111
<script type="text/javascript"><!--
1212
try {
1313
if (location.href.indexOf('is-external=true') == -1) {
14-
parent.document.title="Index (hjson API)";
14+
parent.document.title="Index (hjson 3.0.1 API)";
1515
}
1616
}
1717
catch(err) {

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<html lang="en">
44
<head>
55
<!-- Generated by javadoc -->
6-
<title>hjson API</title>
6+
<title>hjson 3.0.1 API</title>
77
<script type="text/javascript">
88
tmpTargetPage = "" + window.location.search;
99
if (tmpTargetPage != "" && tmpTargetPage != "undefined")

0 commit comments

Comments
 (0)