-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
117 lines (94 loc) · 2.65 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
plugins {
id 'java-library'
id 'maven-publish'
id 'groovy'
id 'org.standardout.eclipseconfig' version '1.1.0'
id 'to.wetransform.semantic-release-version' version '2.1.2'
}
repositories {
maven { // wetransform (HALE and Eclipse dependencies)
url 'https://artifactory.wetransform.to/artifactory/local'
}
// these need to before MavenCentral for retrieving JAI
maven { // Geotools
url 'https://repo.osgeo.org/repository/release/'
}
maven {
url 'https://artifactory.wetransform.to/artifactory/ext-release-local'
}
mavenCentral()
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
group = 'to.wetransform'
project.ext {
haleVersion = '6.2.2'
}
dependencies {
// BOM
implementation(platform("eu.esdihumboldt.hale:bom:$haleVersion"))
implementation 'org.slf4j:slf4j-api'
implementation 'commons-io:commons-io'
// core
implementation 'eu.esdihumboldt.hale:org.eclipse.equinox.nonosgi.registry'
implementation "eu.esdihumboldt.hale:eu.esdihumboldt.hale.common.core"
// schema
implementation "eu.esdihumboldt.hale:eu.esdihumboldt.hale.common.schema"
// alignment
implementation "eu.esdihumboldt.hale:eu.esdihumboldt.hale.common.align"
// Groovy
implementation 'org.codehaus.groovy:groovy-xml'
// testing
testImplementation 'junit:junit:4.13.2'
// logging
testRuntimeOnly 'ch.qos.logback:logback-core'
testRuntimeOnly 'ch.qos.logback:logback-classic'
}
/*
* Packaging and publishing
*/
// package groovydoc into a jar file
task packageJavadoc(type: Jar, dependsOn: 'groovydoc') {
from groovydoc.destinationDir
archiveClassifier = 'javadoc'
}
// package source into a jar file
task packageSources(type: Jar) {
from sourceSets.main.allSource
archiveClassifier = 'sources'
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact packageSources
artifact packageJavadoc
}
}
repositories {
maven {
url = project.version.endsWith('-SNAPSHOT') ?
'https://artifactory.wetransform.to/artifactory/libs-snapshot-local' :
'https://artifactory.wetransform.to/artifactory/libs-release-local'
credentials {
username project.hasProperty('wetfArtifactoryUser') ? wetfArtifactoryUser : ''
password project.hasProperty('wetfArtifactoryPassword') ? wetfArtifactoryPassword : ''
}
}
}
}
/*
* Some general project configuration
*/
configurations.all {
// ensure SNAPSHOTs are updated every time if needed
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
// Gradle wrapper
tasks.wrapper {
distributionType = Wrapper.DistributionType.ALL
gradleVersion = '8.12.1'
}