-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
100 lines (88 loc) · 3.27 KB
/
build.gradle
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
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
id 'checkstyle'
}
group = 'ch.geowerkstatt.ilivalidator.extensions.functions'
archivesBaseName = 'geow-interlis-functions'
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
repositories {
mavenCentral()
maven { url "https://jars.interlis.ch" }
}
dependencies {
implementation group: 'antlr', name: 'antlr', version: '2.7.7'
implementation group: 'ch.interlis', name: 'iox-api', version: '1.0.4'
implementation group: 'ch.interlis', name: 'iox-ili', version: '1.22.0'
implementation group: 'ch.interlis', name: 'ili2c-tool', version: "5.4.0"
implementation group: 'ch.interlis', name: 'ili2c-core', version: "5.4.0"
implementation group: 'com.vividsolutions', name: 'jts-core', version: '1.14.0'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
}
java{
withSourcesJar()
withJavadocJar()
}
test {
useJUnitPlatform()
}
publishing {
publications{
GeowerkstattCustomFunctions(MavenPublication){
from components.java
pom {
name = 'geow-interlis-functions'
description = 'Library containing function implementations for ilivalidator / INTERLIS v2.4'
url = 'https://github.com/GeoWerkstatt/geow-interlis-functions'
licenses {
license {
name = 'GNU Lesser General Public License v2.1'
url = 'https://github.com/GeoWerkstatt/geow-interlis-functions/blob/master/LICENSE.md'
}
}
developers {
developer {
id = 'GeoWerkstatt'
name = 'GeoWerkstatt GmbH'
email = 'office@geowerkstatt.ch'
}
}
scm {
connection = 'scm:git:git:https://github.com/GeoWerkstatt/geow-interlis-functions.git'
developerConnection = 'scm:git:git:https://github.com/GeoWerkstatt/geow-interlis-functions.git'
url = 'https://github.com/GeoWerkstatt/geow-interlis-functions/'
}
}
}
}
repositories {
maven {
name = 'GitHubPackages'
url = uri('https://maven.pkg.github.com/GeoWerkstatt/geow-interlis-functions')
credentials {
username = findProperty("GITHUB_ACTOR")
password = findProperty("GITHUB_TOKEN")
}
}
}
}
nexusPublishing {
repositories {
sonatype { //only for users registered in Sonatype after 24 Feb 2021
username = findProperty("OSSRH_USER")
password = findProperty("OSSRH_PASSWORD")
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}
signing{
def key = findProperty("SIGNING_KEY")
def password = findProperty("SIGNING_PASSWORD")
useInMemoryPgpKeys(key, password)
sign(publishing.publications.GeowerkstattCustomFunctions)
}