Skip to content

Commit 8ecc3ab

Browse files
javaqueryVicky Thakor
authored andcommitted
release: release 1.0
1 parent 380a363 commit 8ecc3ab

File tree

3 files changed

+62
-144
lines changed

3 files changed

+62
-144
lines changed

build.gradle

Lines changed: 59 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
id 'java'
33
id 'maven-publish'
4+
id 'signing'
45
}
56

67
group 'com.javaquery'
@@ -18,20 +19,70 @@ test {
1819
useJUnitPlatform()
1920
}
2021

22+
java {
23+
withJavadocJar()
24+
withSourcesJar()
25+
}
26+
2127
publishing {
28+
publications {
29+
mavenJava(MavenPublication) {
30+
artifactId = 'util'
31+
from components.java
32+
33+
versionMapping {
34+
usage('java-api') {
35+
fromResolutionOf('runtimeClasspath')
36+
}
37+
usage('java-runtime') {
38+
fromResolutionResult()
39+
}
40+
}
41+
pom {
42+
name = 'Java Util Library'
43+
description = 'Java util class to reduce boilerplate codes'
44+
url = 'https://github.com/javaquery/util'
45+
licenses {
46+
license {
47+
name = 'MIT'
48+
url = 'https://github.com/javaquery/util/blob/main/LICENSE'
49+
}
50+
}
51+
developers {
52+
developer {
53+
id = 'javaquery'
54+
name = 'Vicky Thakor'
55+
56+
timezone = '+05:30'
57+
}
58+
}
59+
scm {
60+
connection = 'scm:git:git://github.com/javaquery/util.git'
61+
developerConnection = 'scm:git:ssh://github.com/javaquery/util.git'
62+
url = 'https://github.com/javaquery/util'
63+
}
64+
}
65+
}
66+
}
2267
repositories {
2368
maven {
24-
name = "GitHubPackages"
25-
url = uri("https://maven.pkg.github.com/javaquery/util")
69+
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
70+
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots"
71+
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
2672
credentials {
27-
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_ACTOR")
28-
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
73+
username "javaquery"
74+
password "*****"
2975
}
3076
}
3177
}
32-
publications {
33-
gpr(MavenPublication) {
34-
from(components.java)
35-
}
78+
}
79+
80+
signing {
81+
sign publishing.publications.mavenJava
82+
}
83+
84+
javadoc {
85+
if(JavaVersion.current().isJava9Compatible()) {
86+
options.addBooleanOption('html5', true)
3687
}
3788
}

gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
signing.keyId=******
2+
signing.password=******
3+
signing.secretKeyRingFile=******

pom.xml

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

0 commit comments

Comments
 (0)