-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
54 lines (47 loc) · 1.53 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
plugins {
id 'java'
id 'io.github.karlatemp.publication-sign' version '1.3.15'
// id 'idea'
id 'org.jetbrains.gradle.plugin.idea-ext' version '1.1.4' apply false
}
description = "A bridge for access jdk.internal.misc.Unsafe"
allprojects {
group 'io.github.karlatemp'
version '1.7.0'
repositories {
mavenCentral()
}
afterEvaluate {
pluginManager.withPlugin('java') {
dependencies {
compileOnly group: 'org.jetbrains', name: 'annotations', version: '20.1.0'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
}
if (project.name == 'impl.testunit') {
return
}
test {
useJUnitPlatform()
}
compileJava {
if (!project.ext.has('versionOverrided')) {
println("Java 8 for ${project.name}")
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
compileTestJava {
if (!project.ext.has('versionOverrided')) {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
}
}
}
publicationSign {
setupWorkflow { workflow ->
workflow.fastSetup("keys/key.pub", "keys/key.pri")
}
}