-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
103 lines (90 loc) · 2.98 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
103 lines (90 loc) · 2.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
`java-library`
`maven-publish`
signing
}
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
api("io.undertow:undertow-core:2.3.16.Final")
api("com.github.spullara.mustache.java:compiler:0.9.10")
api("ch.qos.logback:logback-classic:1.4.14")
api("com.google.code.gson:gson:2.10")
api("io.github.wldt:wldt-core:0.4.0")
testImplementation("junit:junit:4.13.2")
}
java {
withJavadocJar()
withSourcesJar()
}
tasks.withType<JavaCompile>() {
options.encoding = "UTF-8"
}
tasks.withType<Javadoc>() {
options.encoding = "UTF-8"
if (JavaVersion.current().isJava9Compatible) {
(options as StandardJavadocDocletOptions).addBooleanOption("html5", true)
}
}
group = "io.github.wldt"
version = "0.2"
description = "Digital Adapter to expose the Digital Twin with the HTTP protocol within the WLDT Library"
java.sourceCompatibility = JavaVersion.VERSION_1_8
publishing {
repositories {
maven {
name = "Sonatype"
val releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
val snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots"
url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl)
credentials {
username = (properties["ossrhToken"] as String?)
password = (properties["ossrhTokenPassword"] as String?)
}
}
maven {
name = "Local"
val releasesRepoUrl = layout.buildDirectory.dir("repos/releases")
val snapshotsRepoUrl = layout.buildDirectory.dir("repos/snapshots")
url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl)
}
}
publications.create<MavenPublication>("WLDTRelease") {
from(components["java"])
pom {
name = "HTTP Digital Adapter"
url = "https://wldt.github.io/"
description = project.description;
licenses {
license {
name = "Apache-2.0 license"
url = "https://raw.githubusercontent.com/wldt/http-digital-adapter-java/main/LICENSE"
}
}
developers {
developer {
id = "samubura"
name = "Samuele Burattini"
email = "samuele.burattini@unibo.it"
}
developer {
id = "piconem"
name = "Marco Picone"
email = "picone.m@gmail.com"
}
}
scm {
connection = "scm:git:https://github.com/wldt/http-digital-adapter-java"
url = "https://github.com/wldt/http-digital-adapter-java"
}
}
}
}
signing {
sign(publishing.publications["WLDTRelease"])
}