-
Notifications
You must be signed in to change notification settings - Fork 21
/
build.gradle
60 lines (53 loc) · 1.89 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
plugins {
id 'java'
id 'eclipse'
id 'idea'
id 'com.github.ben-manes.versions' version '0.51.0'
id "com.diffplug.spotless" version "6.25.0"
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
// Ignore Alpha and Beta versions when checking for version updates
dependencyUpdates.resolutionStrategy = {
componentSelection { rules ->
rules.all { ComponentSelection selection ->
boolean rejected = ['alpha', 'beta', 'rc', 'cr', 'm'].any { qualifier ->
selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/
}
if (rejected) {
selection.reject('Release candidate')
}
}
}
}
spotless {
java {
target 'src/**/*.java'
targetExclude 'src/**/module-info.java'
importOrder('java', 'javax', 'jakarta', '')
removeUnusedImports()
eclipse()
}
}
version = '1-SNAPSHOT'
group = 'com.bitwig.open'
description = 'dawproject file format'
buildDir = new File(project.projectDir, "target")
repositories {
mavenLocal()
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
}
dependencies {
implementation group: 'jakarta.xml.bind', name: 'jakarta.xml.bind-api', version: '4.0.2'
runtimeOnly group: 'com.sun.xml.bind', name: 'jaxb-impl', version: '4.0.5'
implementation group: 'commons-io', name: 'commons-io', version: '2.18.0'
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
annotationProcessor group: 'com.github.therapi', name: 'therapi-runtime-javadoc-scribe', version: '0.15.0'
implementation group: 'com.github.therapi', name: 'therapi-runtime-javadoc', version: '0.15.0'
testImplementation group: 'com.j2html', name: 'j2html', version: '1.6.0'
testImplementation group: 'org.reflections', name: 'reflections', version: '0.10.2'
}