-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
63 lines (52 loc) · 1.61 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
buildscript {
// Workaround to generate samples:
// ./gradlew --include-build ../sample-builder clean buildSamples
// (where "../sample-builder" points to the code of the sample builder repo)
try {
gradle.includedBuild('cip4-sample-builder')
dependencies {
classpath("org.cip4:cip4-sample-builder:1.0-SNAPSHOT")
}
} catch (UnknownDomainObjectException e) {
// nothing to do
}
}
plugins {
id 'groovy'
}
configurations.all {
resolutionStrategy {
cacheDynamicVersionsFor 30, 'seconds'
}
}
repositories {
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
implementation localGroovy()
testImplementation 'org.glassfish.jaxb:jaxb-runtime:4.0.2'
testImplementation 'jakarta.xml.bind:jakarta.xml.bind-api:4.0.1'
testImplementation 'org.cip4.lib.xjdf:xJdfLib:latest.integration'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.3.1'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
}
test {
useJUnitPlatform()
maxParallelForks = Runtime.runtime.availableProcessors()
}
try {
Class.forName('org.cip4.samples.SamplesPlugin');
apply plugin: 'org.cip4.samples'
buildSamples {
inputDir = file("src/main/resources/samples")
outputDir = file("build/generated-samples")
}
buildSamples.dependsOn test
} catch (ClassNotFoundException e) {
// void
}