-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
51 lines (44 loc) · 1.8 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
plugins {
id 'net.kyori.blossom' version "1.2.0" apply false
id 'java'
}
apply from: 'props.gradle'
apply from: "https://gist.github.com/ijo42/5497480a99a7c8003d9862db5432625c/raw/cc9057de8aeca43e9747d85b51c9b322114f5009/buildscript.groovy"
group = rootProject.getGroup()
archivesBaseName = rootProject.getArchivesBaseName()
subprojects {
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: "net.kyori.blossom"
version = rootProject.getVersion()
group = rootProject.getGroup()
archivesBaseName = rootProject.getArchivesBaseName()
repositories {
mavenCentral()
mavenLocal()
maven { url 'https://jitpack.io/' }
maven { url 'https://repo.spring.io/snapshot' }
}
jar {
manifest {
attributes([
"Specification-Title": rootProject.getName(),
"Specification-Vendor": "ijo42",
"Specification-Version": "1", // We are version 1 of ourselves
"Implementation-Title": rootProject.getName(),
"Implementation-Version": rootProject.getVersion(),
"Implementation-Vendor" :"ijo42",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
options.incremental = true // one flag, and things will get so MUCH faster
}
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '16'
/*apply from: "https://gist.githubusercontent.com/ijo42/6b215e76269a72f37194b924ddda038e/raw/signjar.groovy"*/
}
tasks.getByPath(':jar').enabled = false
defaultTasks 'build'