forked from cryptic-game/java-backend-old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
72 lines (59 loc) · 1.83 KB
/
build.gradle.kts
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
plugins {
java
application
id("io.freefair.aggregate-javadoc") version "5.1.0"
// kotlin("jvm") version "1.3.70"
}
group = "net.cryptic-game"
version = "0.3.0"
application {
mainClassName = ""
}
subprojects {
apply(plugin = "java")
// apply(plugin = "kotlin")
version = project.parent!!.version
repositories {
mavenCentral()
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.6.2")
testImplementation("org.mockito:mockito-junit-jupiter:3.3.3")
}
tasks.test {
useJUnitPlatform()
maxHeapSize = "1G"
}
// tasks {
// compileKotlin {
// kotlinOptions.jvmTarget = "11"
// }
//
// compileTestKotlin {
// kotlinOptions.jvmTarget = "11"
// }
// }
}
tasks {
val cleanDocs = task("cleanDocs", Delete::class) {
delete("$projectDir/javadoc/latest/")
}
task("createDocs", Copy::class) {
dependsOn(cleanDocs)
into("$projectDir/javadoc/latest/")
}
task("version") {
println("Version $version")
}
}
//task linkSentry(type: Exec) {
// commandLine "sentry-cli", "releases", "new", "-p", "${System.env.SENTRY_PROJECT}", "${version.toString()}"
// commandLine "sentry-cli", "releases", "set-commits", "--auto", "${version.toString()}"
// commandLine "sentry-cli", "releases", "finalize", "${version.toString()}"
// commandLine "sentry-cli", "releases", "deploys", "${version.toString()}", "new", "-e", "${System.env.SENTRY_DEPLOY_ENVIRONMENT}"
//}