forked from Hexaoxide/Carbon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
61 lines (51 loc) · 1.83 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
plugins {
id 'com.palantir.git-version' version '0.12.3'
id 'org.checkerframework' version '0.5.11'
}
// Get dependency versions from a centralized location
apply from: 'dependencies.gradle'
// Gets the git commit hash of the latest commit, used for version string
ext.projectVersion = '1.0'
def gitHash = versionDetails().gitHash
allprojects {
group = 'net.draycia'
description = 'CarbonChat'
version = project.property('projectVersion') + '-' + gitHash
}
subprojects {
apply plugin: 'checkstyle'
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'org.checkerframework'
repositories {
mavenCentral()
maven { url = 'https://repo.maven.apache.org/maven2' }
maven { url = 'https://oss.sonatype.org/content/groups/public/' }
maven { url = 'https://maven.enginehub.org/repo/' }
maven { url = 'https://papermc.io/repo/repository/maven-public/' }
maven { url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
maven { url = 'https://jitpack.io' }
maven { url = 'https://dl.bintray.com/ichbinjoe/public/' }
maven { url = 'https://repo.codemc.org/repository/maven-public/' }
maven { url = 'https://repo.glaremasters.me/repository/public/' }
maven { url = "https://repo.aikar.co/content/groups/aikar/" }
maven { url = 'https://repo.minebench.de/' }
}
dependencies {
checkstyle("ca.stellardrift:stylecheck:${vers['stylecheck']}")
}
checkstyle {
def configRoot = new File(rootProject.projectDir, '.checkstyle')
toolVersion = vers['checkstyle']
configDirectory = configRoot
configProperties = [basedir: configRoot.getAbsolutePath()]
}
checkerFramework {
checkers = [
'org.checkerframework.checker.nullness.NullnessChecker'
]
}
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}