2024-03-30
This commit is contained in:
111
build.gradle.kts
111
build.gradle.kts
@@ -1,7 +1,5 @@
|
||||
plugins {
|
||||
java
|
||||
`java-library`
|
||||
`maven-publish`
|
||||
idea
|
||||
id("com.github.ben-manes.versions") version "0.51.0"
|
||||
}
|
||||
@@ -19,10 +17,6 @@ repositories {
|
||||
password = project.findProperty("repo.password") as String
|
||||
}
|
||||
}
|
||||
maven {
|
||||
url = uri("https://repo.maven.apache.org/maven2")
|
||||
name = "Maven Central"
|
||||
}
|
||||
}
|
||||
idea{
|
||||
module {
|
||||
@@ -31,10 +25,10 @@ idea{
|
||||
}
|
||||
}
|
||||
java {
|
||||
withSourcesJar()
|
||||
withJavadocJar()
|
||||
sourceCompatibility = org.gradle.api.JavaVersion.VERSION_1_8
|
||||
targetCompatibility = org.gradle.api.JavaVersion.VERSION_1_8
|
||||
//withSourcesJar()
|
||||
//withJavadocJar()
|
||||
sourceCompatibility = org.gradle.api.JavaVersion.VERSION_17
|
||||
targetCompatibility = org.gradle.api.JavaVersion.VERSION_17
|
||||
//modularity.inferModulePath.set(false)
|
||||
}
|
||||
|
||||
@@ -81,95 +75,16 @@ tasks.javadoc {
|
||||
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
create<MavenPublication>("mavenJava") {
|
||||
from(components["java"])
|
||||
pom {
|
||||
// todo
|
||||
name.set(project.name)
|
||||
description.set(project.description)
|
||||
url.set("https://www.elex-project.com/")
|
||||
inceptionYear.set("2022")
|
||||
properties.set(mapOf(
|
||||
"myProp" to "value",
|
||||
"prop.with.dots" to "anotherValue"
|
||||
))
|
||||
organization {
|
||||
name.set("Elex co.,Pte.")
|
||||
url.set("https://www.elex-project.com/")
|
||||
}
|
||||
licenses {
|
||||
license {
|
||||
// todo
|
||||
name.set("Apache License 2.0")
|
||||
url.set("https://git.elex-project.com/elex/${project.name}/src/branch/main/LICENSE")
|
||||
comments.set("")
|
||||
}
|
||||
}
|
||||
developers {
|
||||
developer {
|
||||
id.set("elex")
|
||||
name.set("Elex")
|
||||
url.set("https://www.elex.pe.kr/")
|
||||
email.set("developer@elex-project.com")
|
||||
organization.set("Elex Co.,Pte.")
|
||||
organizationUrl.set("https://www.elex-project.com/")
|
||||
roles.set(arrayListOf("Developer", "CEO"))
|
||||
timezone.set("Asia/Seoul")
|
||||
properties.set(mapOf("" to ""))
|
||||
}
|
||||
}
|
||||
contributors {
|
||||
contributor {
|
||||
name.set("")
|
||||
email.set("")
|
||||
url.set("")
|
||||
}
|
||||
}
|
||||
scm {
|
||||
// todo
|
||||
connection.set("scm:git:https://git.elex-project.com/elex/${project.name}.git")
|
||||
developerConnection.set("scm:git:https://git.elex-project.com/elex/${project.name}.git")
|
||||
url.set("https://git.elex-project.com/elex/${project.name}/")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
name = "mavenElex"
|
||||
val urlRelease = uri(project.findProperty("repo.release.url") as String)
|
||||
val urlSnapshot = uri(project.findProperty("repo.snapshot.url") as String)
|
||||
url = if (version.toString().endsWith("SNAPSHOT")) urlSnapshot else urlRelease
|
||||
// Repository credential, Must be defined in ~/.gradle/gradle.properties
|
||||
credentials {
|
||||
username = project.findProperty("repo.username") as String
|
||||
password = project.findProperty("repo.password") as String
|
||||
}
|
||||
}
|
||||
maven { //todo
|
||||
name = "mavenGithub"
|
||||
url = uri("https://maven.pkg.github.com/elex-project/${project.name}")
|
||||
credentials {
|
||||
username = project.findProperty("github.username") as String
|
||||
password = project.findProperty("github.token") as String
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
|
||||
implementation("org.slf4j:slf4j-api:2.1.0-alpha1")
|
||||
implementation("org.jetbrains:annotations:24.1.0")
|
||||
//implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
|
||||
implementation("org.slf4j:slf4j-api:2.+")
|
||||
implementation("org.jetbrains:annotations:24.+")
|
||||
|
||||
compileOnly("org.projectlombok:lombok:1.18.30")
|
||||
annotationProcessor("org.projectlombok:lombok:1.18.26")
|
||||
testAnnotationProcessor("org.projectlombok:lombok:1.18.26")
|
||||
compileOnly("org.projectlombok:lombok:1.18.32")
|
||||
annotationProcessor("org.projectlombok:lombok:1.18.32")
|
||||
testAnnotationProcessor("org.projectlombok:lombok:1.18.32")
|
||||
|
||||
testImplementation("ch.qos.logback:logback-classic:1.4.14")
|
||||
testImplementation("org.junit.jupiter:junit-jupiter:5.10.1")
|
||||
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.1")
|
||||
testImplementation("ch.qos.logback:logback-classic:1.5.3")
|
||||
testImplementation("org.junit.jupiter:junit-jupiter:5.10.2")
|
||||
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.2")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user