-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
55 lines (44 loc) · 1011 Bytes
/
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
plugins {
id 'maven-publish'
id 'java'
id 'io.freefair.lombok' version "8.+"
id 'fabric-loom' version "1.8.+" apply false
id 'ploceus' version "1.8.+" apply false
id "dev.yumi.gradle.licenser" version "1.0.+"
}
archivesBaseName = project.archives_base_name
version = "${project.version}"
group = project.maven_group
repositories {
mavenLocal()
maven {
url = "https://moehreag.duckdns.org/maven/releases"
}
mavenCentral()
}
subprojects {
apply plugin: "java"
apply plugin: "maven-publish"
apply plugin: "io.freefair.lombok"
apply plugin: "dev.yumi.gradle.licenser"
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://jitpack.io' }
}
project.extensions.configure(JavaPluginExtension.class) {
it.withSourcesJar()
}
jar {
filesMatching('LICENSE') {
rename '^(LICENSE.*?)(\\..*)?$', "\$1_${archivesBaseName}\$2"
}
}
license {
rule file('../HEADER')
include '**/*.java'
}
}
tasks.withType(JavaCompile).configureEach {
it.options.encoding = 'UTF-8'
}