under construction
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
import org.gradle.kotlin.dsl.repositories
|
||||
|
||||
/*
|
||||
* Project Freesia
|
||||
* Project Asgard
|
||||
*
|
||||
* Copyright (c) 2021. Elex. All Rights Reserved.
|
||||
* https://www.elex-project.com/
|
||||
*/
|
||||
|
||||
import org.gradle.kotlin.dsl.repositories
|
||||
|
||||
plugins{
|
||||
java
|
||||
}
|
||||
|
||||
java {
|
||||
withSourcesJar()
|
||||
withJavadocJar()
|
||||
@@ -25,11 +26,13 @@ configurations {
|
||||
extendsFrom(testAnnotationProcessor.get())
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
url = uri("https://repository.elex-project.com/repository/maven")
|
||||
}
|
||||
}
|
||||
|
||||
tasks.jar {
|
||||
manifest {
|
||||
attributes(
|
||||
@@ -37,11 +40,12 @@ tasks.jar {
|
||||
"Implementation-Title" to project.name,
|
||||
"Implementation-Version" to project.version,
|
||||
"Implementation-Vendor" to "ELEX co.,pte.",
|
||||
"Automatic-Module-Name" to "com.elex_project.freesia"
|
||||
"Automatic-Module-Name" to "com.elex_project.asgard"
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
tasks.compileJava {
|
||||
options.encoding = "UTF-8"
|
||||
}
|
||||
@@ -49,9 +53,11 @@ tasks.compileJava {
|
||||
tasks.compileTestJava {
|
||||
options.encoding = "UTF-8"
|
||||
}
|
||||
|
||||
tasks.test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
tasks.javadoc {
|
||||
if (JavaVersion.current().isJava9Compatible) {
|
||||
(options as StandardJavadocDocletOptions).addBooleanOption("html5", true)
|
||||
@@ -61,7 +67,10 @@ tasks.javadoc {
|
||||
(options as StandardJavadocDocletOptions).docEncoding = "UTF-8"
|
||||
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("org.slf4j:slf4j-api:1.7.30")
|
||||
implementation("org.jetbrains:annotations:20.1.0")
|
||||
implementation("org.jetbrains:annotations:22.0.0")
|
||||
|
||||
implementation("com.elex-project:abraxas:4.7.2")
|
||||
}
|
||||
|
||||
21
buildSrc/src/main/kotlin/elex-java-library.gradle.kts
Normal file
21
buildSrc/src/main/kotlin/elex-java-library.gradle.kts
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Project Asgard
|
||||
*
|
||||
* Copyright (c) 2021. Elex. All Rights Reserved.
|
||||
* https://www.elex-project.com/
|
||||
*/
|
||||
|
||||
plugins{
|
||||
id("elex-base")
|
||||
`java-library`
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly("org.projectlombok:lombok:1.18.16")
|
||||
annotationProcessor("org.projectlombok:lombok:1.18.16")
|
||||
testAnnotationProcessor("org.projectlombok:lombok:1.18.16")
|
||||
|
||||
testImplementation("ch.qos.logback:logback-classic:1.2.3")
|
||||
testImplementation("org.junit.jupiter:junit-jupiter:5.7.0")
|
||||
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.7.0")
|
||||
}
|
||||
@@ -1,4 +1,10 @@
|
||||
/*
|
||||
* Project Asgard
|
||||
*
|
||||
* Copyright (c) 2021. Elex. All Rights Reserved.
|
||||
* https://www.elex-project.com/
|
||||
*/
|
||||
|
||||
plugins{
|
||||
id("elex-base")
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user