forked from LioRael/Milim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
60 lines (54 loc) · 1.51 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
plugins {
`maven-publish`
kotlin("jvm") version "1.6.10"
java
}
repositories {
mavenCentral()
maven {
url = uri("http://mcsy.net:8081/repository/releases/")
isAllowInsecureProtocol = true
}
maven { url = uri("https://jitpack.io") }
}
dependencies {
implementation("ink.ptms.core:v11800:11800:api")
implementation("ink.ptms.core:v11800:11800:mapped")
implementation("ink.ptms.core:v11800:11800:universal")
compileOnly("org.jetbrains.kotlin:kotlin-stdlib:1.6.10")
compileOnly(fileTree("libs"))
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
configure<JavaPluginExtension> {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-Xjvm-default=all")
}
}
publishing {
repositories {
maven("http://mcsy.net:8081/repository/releases") {
isAllowInsecureProtocol = true
credentials {
username = project.findProperty("username").toString()
password = project.findProperty("password").toString()
}
authentication {
create<BasicAuthentication>("basic")
}
}
}
publications {
create<MavenPublication>("maven") {
from(components["java"])
groupId = "com.faithl"
artifactId = "milim"
}
}
}