-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
55 lines (43 loc) · 1.26 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
plugins {
// https://github.com/johnrengelman/shadow
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'java'
id 'application'
}
group 'io.noties'
version '34'
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
mainClassName = 'io.noties.enhance.Enhance'
repositories {
jcenter()
mavenCentral()
}
dependencies {
implementation 'com.google.code.findbugs:jsr305:3.0.2'
// https://github.com/javaparser/javaparser
implementation 'com.github.javaparser:javaparser-core:3.25.5'
// https://github.com/google/google-java-format
implementation 'com.google.googlejavaformat:google-java-format:1.18.1'
implementation 'commons-cli:commons-cli:1.4'
implementation 'commons-io:commons-io:2.7'
testImplementation 'junit:junit:4.13.1'
}
wrapper {
gradleVersion '7.5.1'
distributionType 'all'
}
afterEvaluate {
final def folder = new File(rootDir, '/gen/io/noties/enhance')
if (!folder.exists()) {
folder.mkdirs()
}
final def file = new File(folder, 'EnhanceVersion.java')
file.write("""
package io.noties.enhance;
class EnhanceVersion { static final String NAME = \"${version}\"; }
""")
}
sourceSets {
main.java.srcDirs += new File(rootDir, 'gen')
}