This repository has been archived by the owner on Jun 13, 2022. It is now read-only.
forked from KyoriPowered/adventure-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
107 lines (90 loc) · 2.64 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
buildscript {
ext {
//indraVersion = '2.0.6'
pluginBuilderVersion = '1.0.73'
nmsMapperVersion = '1.2.1'
}
}
plugins {
//id 'net.kyori.indra' version "$indraVersion" apply false
//id 'net.kyori.indra.publishing.sonatype' version "$indraVersion"
//id 'net.kyori.indra.license-header' version "$indraVersion" apply false
id 'org.screamingsandals.plugin-builder-lite' version "$pluginBuilderVersion" apply false
id 'org.screamingsandals.nms-mapper' version "$nmsMapperVersion" apply false
}
defaultTasks 'clean', 'screamCompile'
// Adventure version
ext.adventure = "4.9.1"
allprojects {
group 'org.screamingsandals'
version '4.0.3-SNAPSHOT'
}
/**
* Bukkit and its dependencies have metadata that is incorrect and excludes some annotation APIs.
*
* To suppress compiler warnings from being unable to find the appropriate annotations,
* we inject the dependencies here.
*/
@CacheableRule
class BukkitAnnotationsRule implements ComponentMetadataRule {
@Override
void execute(final ComponentMetadataContext componentMetadataContext) {
componentMetadataContext.details.withVariant("compile") {
withDependencies {
add("com.google.errorprone:error_prone_annotations:2.10.0")
add("org.jetbrains:annotations:23.0.0")
}
}
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'org.screamingsandals.plugin-builder-lite'
sourceCompatibility = JavaVersion.VERSION_11
//apply plugin: 'net.kyori.indra'
//apply plugin: 'net.kyori.indra.publishing'
//apply plugin: 'net.kyori.indra.checkstyle'
//apply plugin: 'net.kyori.indra.license-header'
dependencies {
components {
withModule("com.destroystokyo.paper:paper-api", BukkitAnnotationsRule)
}
annotationProcessor 'ca.stellardrift:contract-validator:1.0.1'
//checkstyle 'ca.stellardrift:stylecheck:0.1'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
}
/*indra {
javaVersions {
testWith(8, 11, 16)
}
github("KyoriPowered", "adventure-platform") {
ci(true)
}
mitLicense()
configurePublications {
pom {
developers {
developer {
id = 'kashike'
timezone = 'America/Vancouver'
}
developer {
id = 'lucko'
name = 'Luck'
url = 'https://lucko.me'
email = 'git@lucko.me'
}
developer {
id = 'zml'
name = 'zml'
timezone = 'America/Vancouver'
}
developer {
id = 'Electroid'
}
}
}
}
}*/
}