forked from halestudio/hale-project-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
137 lines (112 loc) · 3.46 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.standardout:gradle-eclipseconfig:1.1.0'
}
}
plugins {
id 'groovy'
id 'maven'
// id "org.standardout.versioneye" version "1.3.0"
}
apply plugin: 'org.standardout.eclipseconfig'
repositories {
// these need to before jcenter/MavenCentral for retrieving JAI
maven {
url 'https://artifactory.wetransform.to/artifactory/ext-release-local'
}
jcenter()
maven { // wetransform release repository (HALE releases and Eclipse dependencies)
url 'https://artifactory.wetransform.to/artifactory/libs-release-local'
}
maven { // wetransform snapshot repository (HALE snapshots)
url 'https://artifactory.wetransform.to/artifactory/libs-snapshot-local'
}
maven { // Geotools
url 'http://download.osgeo.org/webdav/geotools/'
}
}
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
group = 'to.wetransform'
version = '2.0.0-SNAPSHOT'
project.ext {
haleVersion = '3.4.0'
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.12'
// core
compile 'eu.esdihumboldt.unpuzzled:org.eclipse.equinox.nonosgi.registry:1.0.0'
compile "eu.esdihumboldt.hale:eu.esdihumboldt.hale.common.core:$haleVersion"
// schema
compile "eu.esdihumboldt.hale:eu.esdihumboldt.hale.common.schema:$haleVersion"
// resources
/*
compile(group: 'eu.esdihumboldt.hale', name: 'eu.esdihumboldt.util.resource', version: haleVersion)
compile(group: 'eu.esdihumboldt.hale', name: 'eu.esdihumboldt.util.resource.schemas.opengis.net', version: '2015.10.27')
compile(group: 'eu.esdihumboldt.hale', name: 'eu.esdihumboldt.util.resource.schemas.inspire', version: '2015.10.27')
*/
// testing
testCompile 'junit:junit:4.12'
// logging
testRuntime 'ch.qos.logback:logback-core:1.1.6'
testRuntime 'ch.qos.logback:logback-classic:1.1.6'
}
//tasks.check.dependsOn('versionEyeSecurityAndLicenseCheck')
/*
* Packaging and publishing
*/
// package groovydoc into a jar file
task packageJavadoc(type: Jar, dependsOn: 'groovydoc') {
from groovydoc.destinationDir
classifier = 'javadoc'
}
// groovydoc task work-around
configurations {
jansi.extendsFrom(runtime)
}
groovydoc {
groovyClasspath = project.configurations.jansi
}
dependencies {
jansi 'org.fusesource.jansi:jansi:1.11'
}
// package source into a jar file
task packageSources(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
// define artifacts for upload
artifacts {
archives jar
archives packageJavadoc
archives packageSources
}
uploadArchives {
repositories {
mavenDeployer {
// upload to wetransform artifactory
repository(url: 'https://artifactory.wetransform.to/artifactory/libs-release-local') {
authentication(userName: project.hasProperty('wetfArtifactoryUser') ? wetfArtifactoryUser : '',
password: project.hasProperty('wetfArtifactoryPassword') ? wetfArtifactoryPassword : '')
}
snapshotRepository(url: 'https://artifactory.wetransform.to/artifactory/libs-snapshot-local') {
authentication(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
task wrapper(type: Wrapper) {
gradleVersion = '4.9'
}