-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
125 lines (106 loc) · 4.11 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
/*
* ProxyChat, a Velocity chat solution
* Copyright (C) 2020 James Lyne
*
* Based on BungeeChat2 (https://github.com/AuraDevelopmentTeam/BungeeChat2)
* Copyright (C) 2020 Aura Development Team
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'java'
id 'maven-publish'
id 'io.freefair.lombok' version '8.4'
}
rootProject.ext.mavenUserName=""
rootProject.ext.mavenPassword=""
if (file("./build.gradle.local").exists()) {
apply from: "./build.gradle.local"
}
allprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
repositories {
mavenLocal()
mavenCentral()
// Adventure-bom snapshots required for velocity 3.3.0
maven {
url "https://s01.oss.sonatype.org/content/repositories/snapshots"
}
maven { url "https://papermc.io/repo/repository/maven-public/" }
maven { url 'https://repo.not-null.co.uk/releases/' }
maven { url 'https://repo.not-null.co.uk/snapshots/' }
maven { url 'https://repo.lucko.me/' }
maven { url 'https://jitpack.io' }
flatDir {
dirs 'libs'
}
}
group = 'uk.co.notnull'
version = '1.2-SNAPSHOT'
description = 'Velocity Discord integration solution'
compileJava {
options.compilerArgs += ["-Xlint:all", "-Xlint:-processing"]
options.encoding = 'UTF-8'
}
}
dependencies {
implementation project(':ProxyChatApi')
implementation name: 'MessagesTranslator-1.4.3.41-DEV'
implementation 'com.typesafe:config:1.4.3'
compileOnly 'com.velocitypowered:velocity-api:3.3.0-SNAPSHOT'
compileOnly 'net.luckperms:api:5.4'
compileOnly 'uk.co.notnull:PlatformDetection-velocity:2.2'
compileOnly 'uk.co.notnull:ProxyDiscordAPI:1.2'
compileOnly 'uk.co.notnull:SuperVanishBridge-api:1.1'
annotationProcessor 'com.velocitypowered:velocity-api:3.3.0-SNAPSHOT'
testImplementation project(':ProxyChatApi')
testImplementation 'junit:junit:4.13.2'
testImplementation 'ch.vorburger.mariaDB4j:mariaDB4j:2.6.0'
testImplementation 'commons-io:commons-io:2.15.1'
testImplementation name: 'MessagesTranslator-1.4.3.41-DEV'
testImplementation 'com.velocitypowered:velocity-api:3.3.0-SNAPSHOT'
testImplementation "org.mockito:mockito-core:3.6.0"
testImplementation "org.powermock:powermock-api-mockito2:2.0.9"
testImplementation "org.powermock:powermock-module-junit4:2.0.9"
testCompileOnly "com.github.spotbugs:spotbugs-annotations:4.2.3"
testCompileOnly 'com.velocitypowered:velocity-api:3.3.0-SNAPSHOT'
testRuntimeOnly 'org.mariadb.jdbc:mariadb-java-client:2.7.11'
testRuntimeOnly 'org.slf4j:slf4j-nop:1.7.36'
}
description = 'A velocity chat solution'
java.sourceCompatibility = JavaVersion.VERSION_21
java.targetCompatibility = JavaVersion.VERSION_21
tasks {
processResources {
from("${project.rootDir}/src/main/resources") {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
project.properties.findAll().each {
prop ->
if (prop.value != null && prop.value instanceof java.lang.String) {
filter(ReplaceTokens, tokens: [(prop.key): prop.value])
filter(ReplaceTokens, tokens: [('project.' + prop.key): prop.value])
}
}
}
}
build {
dependsOn(shadowJar)
}
shadowJar {
archiveClassifier.set('')
}
}