-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
106 lines (88 loc) · 3.15 KB
/
build.gradle
File metadata and controls
106 lines (88 loc) · 3.15 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
104
105
106
plugins {
id 'java-library'
id 'groovy'
id 'maven-publish'
// id 'net.researchgate.release' version '3.1.0'
id 'com.jfrog.artifactory' version '6.0.4'
}
project.group = 'org.clyze'
wrapper {
gradleVersion = '9.3.1'
}
repositories {
mavenCentral()
}
def groovyVersion='5.0.4'
def spockVersion='2.4-groovy-5.0'
dependencies {
implementation "org.apache.groovy:groovy:${groovyVersion}"
implementation "org.apache.groovy:groovy-xml:${groovyVersion}"
api 'commons-io:commons-io:2.21.0' // Apache 2.21.0
api 'org.apache.logging.log4j:log4j-core:2.25.3' // Logging implementation, Apache 2.0
api 'org.apache.logging.log4j:log4j-api:2.25.3'
api 'org.apache.logging.log4j:log4j-1.2-api:2.25.3'
api 'org.apache.ivy:ivy:2.5.3' // Apache Ivy (for downloading inputs from Maven repos), Apache 2.0
api 'com.googlecode.juniversalchardet:juniversalchardet:1.0.3' // MPL 1.1
api 'org.zeroturnaround:zt-zip:1.17' // Apache 2.0
testImplementation "org.spockframework:spock-core:${spockVersion}"
testRuntimeOnly "org.junit.platform:junit-platform-launcher:6.0.3"
}
compileJava {
options.compilerArgs << '-Xlint:unchecked'
}
java {
withSourcesJar()
withJavadocJar()
}
javadoc {
if (!System.getProperty('java.version').startsWith('1.'))
options.addBooleanOption('html5', true)
}
test {
useJUnitPlatform()
}
tasks.named("assemble") {
dependsOn(sourcesJar, javadocJar)
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
// release {
// //use defaults, see https://github.com/researchgate/gradle-release
// }
// tasks.release.doLast {
// println "WARNING: Releasing clue-common affects both public doop and doop-nexgen, please check that everything works."
// }
// afterReleaseBuild.dependsOn publish
// if (project.hasProperty('artifactory_user')) {
// publishing {
// repositories {
// maven {
// credentials {
// username=artifactory_user
// password=artifactory_password
// }
// //Always publish to the public releases repo
// url="${artifactory_contextUrl}/libs-public-release-local"
// allowInsecureProtocol=true
// }
// }
// }
// }
// To configure, set jfrog_user/jfrog_password in [~/.gradle,.]/gradle.properties.
// Upload with: ./gradlew artifactoryPublish
// artifactoryPublish {
// skip = false //Skip build info analysis and publishing (false by default)
// contextUrl = 'http://clyze.jfrog.io/artifactory'
// publications ('mavenJava')
// properties = ['qa.level': 'basic']
// clientConfig.publisher.repoKey = 'default-maven-local'
// clientConfig.publisher.username = jfrog_user
// clientConfig.publisher.password = jfrog_password
// // Minimum file size in KB for which the plugin performs checksum deploy optimization. Default: 10. Set to 0 to disable uploading files with checksum that already exists in Artifactory.
// clientConfig.publisher.minChecksumDeploySizeKb = 10
// }