2024-04-01

This commit is contained in:
2024-04-01 20:11:09 +09:00
parent a2349837be
commit c4291c2746
26 changed files with 464 additions and 34 deletions

View File

@@ -1,6 +1,7 @@
plugins {
id("elex-base")
application
}
tasks.jar {
@@ -13,3 +14,4 @@ tasks.jar {
))
}
}

View File

@@ -2,21 +2,36 @@ plugins {
java
}
group = "com.elex-project"
version = "1.0-SNAPSHOT"
description = ""//todo
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")
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.5.3")
testImplementation("org.junit.jupiter:junit-jupiter:5.10.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.2")
}
repositories {
maven {
name = "Nexus 3 Repository"
url = uri(project.findProperty("repo.url") as String)
credentials {
username = project.findProperty("repo.username") as String
password = project.findProperty("repo.password") as String
}
}
}
java {
withSourcesJar()
withJavadocJar()
sourceCompatibility = org.gradle.api.JavaVersion.VERSION_11
targetCompatibility = org.gradle.api.JavaVersion.VERSION_11
sourceCompatibility = org.gradle.api.JavaVersion.VERSION_17
targetCompatibility = org.gradle.api.JavaVersion.VERSION_17
}
configurations {
@@ -51,16 +66,4 @@ tasks.javadoc {
(options as StandardJavadocDocletOptions).docEncoding = "UTF-8"
}
dependencies {
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
implementation("org.slf4j:slf4j-api:2.0.6")
implementation("org.jetbrains:annotations:24.0.0")
compileOnly("org.projectlombok:lombok:1.18.26")
annotationProcessor("org.projectlombok:lombok:1.18.26")
testAnnotationProcessor("org.projectlombok:lombok:1.18.26")
testImplementation("ch.qos.logback:logback-classic:1.4.5")
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.2")
}

View File

@@ -17,6 +17,7 @@ publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
artifactId = rootProject.name
pom {
// todo
name.set("${rootProject.name} ${project.name}")
@@ -49,7 +50,7 @@ publishing {
organizationUrl.set("https://www.elex-project.com/")
roles.set(arrayListOf("Developer", "CEO"))
timezone.set("Asia/Seoul")
properties.set(mapOf("" to ""))
//properties.set(mapOf("" to ""))
}
}
contributors {
@@ -81,14 +82,7 @@ publishing {
password = project.findProperty("repo.password") as String
}
}
maven { //todo
name = "mavenGithub"
url = uri("https://maven.pkg.git.elex-project.com/elex/${rootProject.name}")
credentials {
username = project.findProperty("github.username") as String
password = project.findProperty("github.token") as String
}
}
}
}