-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
92 lines (77 loc) · 2.64 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
plugins {
id("java")
id("java-library")
id("maven-publish")
}
group = "org.smoodi.web"
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/Project-Smoodi/Smoodi-Core")
}
mavenCentral()
}
java {
sourceCompatibility = JavaVersion.VERSION_21
}
dependencies {
implementation("org.smoodi.framework:smoodi-core:0.0.1-ALPHA")
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.compilerArgs.addAll(
listOf(
"--add-exports", "jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED",
"--add-exports", "jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED",
"--add-exports", "jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED"
)
)
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
groupId = "org.smoodi.framework"
artifactId = "smoodi-web"
version = "0.0.1-SNAPSHOT"
pom {
name.set("Smoodi Framework Web")
description.set("A framework that includes features related to web application server technology.")
url.set("https://github.com/Project-Smoodi/Smoodi-Web")
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("Daybreak312")
name.set("Daybreak312")
email.set("[email protected]")
}
}
scm {
connection.set("scm:git:git://github.com/Project-Smoodi/Smoodi-Web.git")
developerConnection.set("scm:git:ssh://[email protected]:Project-Smoodi/Smoodi-Web.git")
url.set("https://github.com/Project-Smoodi/Smoodi-Web")
}
}
}
}
repositories {
maven {
name = "Smoodi-Framework-Web"
url = uri("https://maven.pkg.github.com/Project-Smoodi/Smoodi-Web")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
password = project.findProperty("gpr.token") as String? ?: System.getenv("TOKEN")
}
}
}
}