Skip to content

Commit b519ec6

Browse files
salihkadirpsiotwo
andauthored
v1.0.1
* refactor: extracted from asquare rev. f4556f04cad137b90a6534e56b052f6bfac88689 * refactor: made independent on asquare * refactor: simplification + removing buildtime dependency on Spring * refactor: simplification of the code * refactor: cleanup, removing Spring from tests, JDK 11 compatibility * fix: cleanup, code quality checks (dependencycheck, pmd, jacoco) * feat: basic support for JSON-LD 1.1 inputs * feat: custom deserializer for prefixes in JSON5 * fix: JSON-lD example * fix: simplifyng data model (POJOs) * refactor: move to the package zone.cogni.semantics.irigenerator, renaming URIs to IRIs * refactor: moving default example to 'demo' folder * feat: test parameterization and improved logging * refactor: test IRIs * refactor: test case naming * chore: create gradle.yml - Github automation * chore: remove dependency-submission (temporarily) * fix: CI cleanup * feat: splitting the main and develop flow * adapt maven central publishing * Update build.gradle.kts * Update build.gradle.kts * Update build.gradle.kts * Update build.gradle.kts * Update build.gradle.kts * Update build.gradle.kts * Rename LICENSE.txt to LICENSE * Update build.gradle.kts * Update build.gradle.kts * Update build.gradle.kts * Update build.gradle.kts * Update build.gradle.kts * Update build.gradle.kts * Update build.gradle.kts * Update build.gradle.kts * Update build.gradle.kts * Update build.gradle.kts * Update build.gradle.kts * Update build.gradle.kts * Initial commit * v1.0.0 * refactor: extracted from asquare rev. f4556f04cad137b90a6534e56b052f6bfac88689 * refactor: made independent on asquare * refactor: simplification + removing buildtime dependency on Spring * refactor: simplification of the code * refactor: cleanup, removing Spring from tests, JDK 11 compatibility * fix: cleanup, code quality checks (dependencycheck, pmd, jacoco) * feat: basic support for JSON-LD 1.1 inputs * refactor: move to the package zone.cogni.semantics.irigenerator, renaming URIs to IRIs * refactor: moving default example to 'demo' folder * feat: test parameterization and improved logging * refactor: test IRIs * refactor: test case naming * Update build.gradle.kts * fix: rebasing to main * Delete LICENSE.txt --------- Co-authored-by: psiotwo <[email protected]>
1 parent 5adebf7 commit b519ec6

File tree

2 files changed

+106
-5
lines changed

2 files changed

+106
-5
lines changed

LICENSE.txt renamed to LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,4 +198,4 @@ Unless required by applicable law or agreed to in writing, software
198198
distributed under the License is distributed on an "AS IS" BASIS,
199199
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200200
See the License for the specific language governing permissions and
201-
limitations under the License.
201+
limitations under the License.

build.gradle.kts

Lines changed: 105 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
val jenaVersion = "4.10.0"
2+
val guavaVersion = "33.3.0-jre"
23
val springVersion = "5.3.+"
34
val jakartaAnnotationApiVersion = "3.0.0"
4-
val guavaVersion = "33.3.0-jre"
5-
val jupiterVersion = "5.11.0"
65
val jb4jsonldJacksonVersion = "0.14.3"
76
val logbackVersion = "1.5.7"
7+
val jupiterVersion = "5.11.0"
88

99
plugins {
1010
`java-library`
1111
pmd
1212
jacoco
1313
id("io.freefair.lombok") version "8.10"
1414
id("org.owasp.dependencycheck") version "10.0.3"
15+
id("maven-publish")
16+
id("signing")
17+
id("pl.allegro.tech.build.axion-release") version "1.13.3"
1518
}
1619

1720
group = "zone.cogni.semanticz"
18-
version = "1.0.0"
21+
1922

2023
repositories {
2124
mavenCentral()
@@ -25,8 +28,28 @@ java {
2528
toolchain {
2629
languageVersion.set(JavaLanguageVersion.of(11))
2730
}
31+
withJavadocJar()
32+
withSourcesJar()
33+
}
34+
35+
version = scmVersion.version
36+
scmVersion {
37+
tag.apply {
38+
prefix = "v"
39+
versionSeparator = ""
40+
branchPrefix = mapOf(
41+
"release/.*" to "release-v",
42+
"hotfix/.*" to "hotfix-v"
43+
)
44+
}
45+
nextVersion.apply {
46+
suffix = "SNAPSHOT"
47+
separator = "-"
48+
}
49+
versionIncrementer("incrementPatch") // Increment the patch version
2850
}
2951

52+
3053
pmd {
3154
isIgnoreFailures = true
3255
isConsoleOutput = true
@@ -67,4 +90,82 @@ tasks.test {
6790

6891
tasks.jacocoTestReport {
6992
dependsOn(tasks.test)
70-
}
93+
}
94+
95+
tasks.jar {
96+
from("${projectDir}") {
97+
include("LICENSE")
98+
into("META-INF")
99+
}
100+
}
101+
102+
publishing {
103+
publications {
104+
create<MavenPublication>("mavenJava") {
105+
from(components["java"])
106+
107+
pom {
108+
name.set("semanticz-irigenerator")
109+
description.set("This project serves for generating IRIs using a predefined template based on existing RDF data.")
110+
url.set("https://github.com/cognizone/semanticz-irigenerator")
111+
112+
scm {
113+
connection.set("scm:[email protected]:cognizone/semanticz-irigenerator.git")
114+
developerConnection.set("scm:[email protected]:cognizone/semanticz-irigenerator.git")
115+
url.set("https://github.com/cognizone/semanticz-irigenerator")
116+
}
117+
118+
licenses {
119+
license {
120+
name.set("The Apache License, Version 2.0")
121+
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
122+
}
123+
}
124+
125+
developers {
126+
developer {
127+
id.set("cognizone")
128+
name.set("Cognizone")
129+
email.set("[email protected]")
130+
}
131+
}
132+
}
133+
}
134+
}
135+
136+
repositories {
137+
if (project.hasProperty("publishToMavenCentral")) {
138+
maven {
139+
credentials {
140+
username = System.getProperty("ossrh.username")
141+
password = System.getProperty("ossrh.password")
142+
}
143+
val stagingRepoUrl = "${System.getProperty("ossrh.url")}/service/local/staging/deploy/maven2"
144+
val snapshotsRepoUrl = "${System.getProperty("ossrh.url")}/content/repositories/snapshots"
145+
url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else stagingRepoUrl)
146+
}
147+
}
148+
}
149+
}
150+
151+
tasks.withType<Javadoc> {
152+
options {
153+
(this as StandardJavadocDocletOptions).addBooleanOption("Xdoclint:none", true)
154+
}
155+
isFailOnError = false
156+
}
157+
158+
signing {
159+
useInMemoryPgpKeys(
160+
project.findProperty("signing.keyId")?.toString(),
161+
project.findProperty("signing.password")?.toString(),
162+
project.findProperty("signing.secretKeyRingFile")?.toString()
163+
)
164+
if (project.hasProperty("publishToMavenCentral")) {
165+
sign(publishing.publications["mavenJava"])
166+
}
167+
}
168+
169+
tasks.withType<PublishToMavenRepository> {
170+
dependsOn(tasks.withType<Sign>())
171+
}

0 commit comments

Comments
 (0)