forked from TerraFirmaCraft-The-Final-Frontier/FileDirector
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
78 lines (64 loc) · 2.28 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
plugins {
id 'java-library'
}
group 'com.juanmuscaria'
version '1.1'
dependencies {
implementation group: "com.fasterxml.jackson.core", name: "jackson-core", version: "2.13.5"
implementation group: "com.fasterxml.jackson.core", name: "jackson-annotations", version: "2.13.5"
implementation group: "com.fasterxml.jackson.core", name: "jackson-databind", version: "2.13.5"
implementation 'com.jetbrains.intellij.java:java-gui-forms-rt:233.13135.104'
implementation 'com.formdev:flatlaf:3.4.1'
implementation 'com.juanmuscaria:autumn-messages:1.1-SNAPSHOT'
implementation 'com.juanmuscaria:autumn-resources:1.1-SNAPSHOT'
}
allprojects {
group = rootProject.group
version = rootProject.version
pluginManager.withPlugin('java') {
repositories {
mavenCentral()
maven {
name = 'intellij-repository'
url = 'https://www.jetbrains.com/intellij-repository/releases/'
}
maven {
name = "juanmuscaria"
url = "https://github.com/juanmuscaria/maven/raw/master"
metadataSources.ignoreGradleMetadataRedirection()
}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
// Jabel stuff, compile with new java features while targeting java 8
dependencies {
annotationProcessor 'com.github.bsideup.jabel:jabel-javac-plugin:0.4.2'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
}
configure([tasks.compileJava]) {
sourceCompatibility = 17 // for the IDE support
options.release = 8
javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(17)
}
}
compileTestJava {
sourceCompatibility = targetCompatibility = 8
}
test {
javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(8)
}
}
}
pluginManager.withPlugin('application') {
run {
javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(8)
}
}
}
}