-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
112 lines (89 loc) · 3.46 KB
/
build.gradle
File metadata and controls
112 lines (89 loc) · 3.46 KB
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
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'java' // Remove once migration is finished
id 'org.jetbrains.kotlin.jvm' version '1.6.20'
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'org.jetbrains.dokka' version '1.6.10'
}
group 'xyz.theprogramsrc'
version '4.0.0'
description 'Secure your users and server.'
repositories{
mavenCentral()
mavenLocal()
maven { url 'https://repo.theprogramsrc.xyz/repository/maven-public/' }
maven { url 'https://repo.theprogramsrc.xyz/repository/simplecoreapi-modules/' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url 'https://oss.sonatype.org/content/repositories/releases/' }
maven { url 'https://oss.sonatype.org/content/groups/public/' }
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
maven { url 'https://repo.codemc.org/repository/maven-public/' }
maven { url 'https://jitpack.io/' }
}
// Versions
def exposedVersion = "0.38.1"
dependencies {
compileOnly 'xyz.theprogramsrc:supercoreapi:5.3.4-SNAPSHOT' // Remove depend once the migration is finished!
/* Kotlin and Minecraft */
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.6.20'
compileOnly 'org.spigotmc:spigot-api:1.18.1-R0.1-SNAPSHOT'
compileOnly 'net.md-5:bungeecord-api:1.18-R0.1-SNAPSHOT'
/* SimpleCoreAPI */
compileOnly 'xyz.theprogramsrc:simplecoreapi:0.3.4-SNAPSHOT'
compileOnly 'xyz.theprogramsrc:commandsmodule:0.1.0-SNAPSHOT'
compileOnly 'xyz.theprogramsrc:filesmodule:0.1.1-SNAPSHOT'
compileOnly 'xyz.theprogramsrc:tasksmodule:0.1.0-SNAPSHOT'
compileOnly 'xyz.theprogramsrc:translationsmodule:0.1.5-SNAPSHOT'
compileOnly 'xyz.theprogramsrc:dependencydownloadermodule:0.1.1-SNAPSHOT'
compileOnly 'xyz.theprogramsrc:uismodule:0.1.1-SNAPSHOT'
compileOnly 'xyz.theprogramsrc:networkingmodule:0.1.0-SNAPSHOT'
compileOnly 'xyz.theprogramsrc:loggingmodule:0.2.1-SNAPSHOT'
/* DataBase */
compileOnly "org.jetbrains.exposed:exposed-core:$exposedVersion"
compileOnly "org.jetbrains.exposed:exposed-dao:$exposedVersion"
compileOnly "org.jetbrains.exposed:exposed-jdbc:$exposedVersion"
compileOnly "org.jetbrains.exposed:exposed-java-time:$exposedVersion"
compileOnly 'mysql:mysql-connector-java:8.0.28'
compileOnly 'org.xerial:sqlite-jdbc:3.36.0.3'
/* Hashing */
implementation 'at.favre.lib:bcrypt:0.9.0'
/* Extras */
compileOnly 'me.clip:placeholderapi:2.10.9'
}
processResources {
filter ReplaceTokens, tokens: [name: rootProject.name, version: project.version.toString(), description: project.description]
}
shadowJar {
mergeServiceFiles()
exclude('**/*.kotlin_metadata')
exclude('**/*.kotlin_builtins')
archiveBaseName.set('SuperAuth')
archiveClassifier.set('')
archiveVersion.set('')
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
withSourcesJar()
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.withType(Jar) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
tasks.withType(Copy){
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
test {
useJUnitPlatform()
}
configurations {
testImplementation {
extendsFrom(compileOnly)
}
}
tasks.named("dokkaHtml") {
outputDirectory.set(file(project.buildDir.absolutePath + '/dokka'))
}