-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
88 lines (72 loc) · 2.67 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
79
80
81
82
83
84
85
86
87
88
plugins {
id 'java-library'
// id 'kotlin'
id 'com.github.ben-manes.versions'
}
wrapper {
gradleVersion = "${gradleVersion}"
}
apply from: 'gradle/javafx.gradle'
group = 'de.heiden'
archivesBaseName = 'jemc64'
version = '1.0-SNAPSHOT'
repositories {
mavenLocal()
mavenCentral()
}
java {
// https://docs.gradle.org/current/userguide/toolchains.html
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
// Use Eclipse Temurin (provided by Adoptium).
vendor.set(JvmVendorSpec.ADOPTIUM)
}
}
compileJava {
// options.compilerArgs += ["--enable-preview"]
// options.compilerArgs += ["--add-exports=java.base/jdk.internal.vm=ALL-UNNAMED"]
// options.release.set(null)
}
compileTestJava {
// options.compilerArgs += ["--enable-preview"]
}
dependencies {
implementation "org.slf4j:slf4j-api:${slf4jVersion}"
runtimeOnly "org.apache.logging.log4j:log4j-slf4j2-impl:${log4jVersion}"
runtimeOnly "org.apache.logging.log4j:log4j-core:${log4jVersion}"
implementation "org.serialthreads:serialthreads:${serialthreadsVersion}"
testImplementation "org.serialthreads:serialthreads:${serialthreadsVersion}:tests"
implementation "de.heiden.c64dt:assembler:${c64dtVersion}"
implementation "de.heiden.c64dt:bytes:${c64dtVersion}"
implementation "de.heiden.c64dt:charset:${c64dtVersion}"
implementation "de.heiden.c64dt:disk:${c64dtVersion}"
implementation "de.heiden.c64dt:gui:${c64dtVersion}"
implementation "org.openjfx:javafx-base:${openjfxVersion}:${openjfxPlatform}"
implementation "org.openjfx:javafx-controls:${openjfxVersion}:${openjfxPlatform}"
implementation "org.openjfx:javafx-graphics:${openjfxVersion}:${openjfxPlatform}"
implementation "org.apache.commons:commons-lang3:${commonsLangVersion}"
testImplementation "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
testImplementation "org.junit.jupiter:junit-jupiter-params:${junitVersion}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
testImplementation "org.assertj:assertj-core:${assertjVersion}"
}
jar {
manifest {
attributes(
'Implementation-Title': 'JemC64',
'Implementation-Version': archiveVersion,
// 'Launcher-Agent-Class': 'org.serialthreads.agent.Agent',
'Main-Class': 'de.heiden.jem.models.c64.C64Serial'
)
}
// TODO markus 2021-05-04: Deduplicate files.
duplicatesStrategy(DuplicatesStrategy.WARN)
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
test {
useJUnitPlatform()
// ignore failing tests
ignoreFailures = true
}