This repository has been archived by the owner on Mar 21, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
75 lines (64 loc) · 2 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
buildscript {
repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
jcenter()
}
dependencies {
classpath group: 'org.jetbrains.kotlin', name: 'kotlin-gradle-plugin', version: kotlin_version
classpath group: 'gradle.plugin.net.minecrell', name: 'licenser', version: minecrell_licenser_version
classpath group: "com.github.jengelman.gradle.plugins", name: "shadow", version: shadow_version
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'net.minecrell.licenser'
apply plugin: 'com.github.johnrengelman.shadow'
group = pluginGroup
version = pluginVersion
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
maven {
name = 'destroystokyo-repo'
url = 'https://repo.destroystokyo.com/repository/maven-public/'
}
maven {
name = 'sonatype'
url = 'https://oss.sonatype.org/content/groups/public/'
}
maven {
name = 'mikroskeem-repo'
url = 'https://repo.wut.ee/repository/mikroskeem-repo'
}
maven {
name = 'spongepowered-repo'
url = 'https://repo.spongepowered.org/maven'
}
}
// Plugin resource processing
processResources {
from(sourceSets.main.resources.srcDirs) {
filter org.apache.tools.ant.filters.ReplaceTokens, tokens: [
version: pluginVersion,
description: description,
website: website
]
}
}
// Licenser task
license {
header = rootProject.file('etc/HEADER')
ignoreFailures = false
include "**/*.java"
include "**/*.kt"
}
}
// Wrapper task
task wrapper(type: Wrapper) {
gradleVersion = gradle_version
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradle_version-all.zip"
}