This repository has been archived on 2024-02-21. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
asgard__/build.gradle.kts
2021-01-28 20:38:24 +09:00

99 lines
2.7 KiB
Kotlin

plugins {
id("org.springframework.boot") version "2.4.2"
id("io.spring.dependency-management") version "1.0.11.RELEASE"
id("org.asciidoctor.convert") version "1.5.8"
java
id("com.github.ben-manes.versions") version "0.36.0"
}
group = "com.elex-project"
version = "0.0.1-SNAPSHOT"
description = ""
java {
withSourcesJar()
withJavadocJar()
sourceCompatibility = org.gradle.api.JavaVersion.VERSION_11
targetCompatibility = org.gradle.api.JavaVersion.VERSION_11
}
configurations {
compileOnly {
extendsFrom(annotationProcessor.get())
}
testCompileOnly {
extendsFrom(testAnnotationProcessor.get())
}
}
repositories {
maven {
url = uri("https://repository.elex-project.com/repository/maven")
}
}
tasks.jar {
manifest {
attributes(
mapOf(
"Implementation-Title" to project.name,
"Implementation-Version" to project.version,
"Implementation-Vendor" to "ELEX co.,pte.",
"Automatic-Module-Name" to "com.elex_project.freesia"
)
)
}
}
ext {
set("snippetsDir", file("build/generated-snippets"))
}
springBoot{
buildInfo()
}
tasks.compileJava {
options.encoding = "UTF-8"
}
tasks.compileTestJava {
options.encoding = "UTF-8"
}
tasks.test {
useJUnitPlatform()
outputs.dir(ext.get("snippetsDir")!!)
}
tasks.asciidoctor {
inputs.dir(ext.get("snippetsDir")!!)
setDependsOn(mutableListOf("test"))
}
tasks.javadoc {
if (JavaVersion.current().isJava9Compatible) {
(options as StandardJavadocDocletOptions).addBooleanOption("html5", true)
}
(options as StandardJavadocDocletOptions).encoding = "UTF-8"
(options as StandardJavadocDocletOptions).charSet = "UTF-8"
(options as StandardJavadocDocletOptions).docEncoding = "UTF-8"
}
dependencies {
implementation("org.slf4j:slf4j-api:1.7.30")
implementation("org.jetbrains:annotations:20.1.0")
//implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-mustache")
//implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-web")
//implementation ("com.fasterxml.jackson.dataformat:jackson-dataformat-xml")
//implementation ("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
compileOnly("org.projectlombok:lombok")
developmentOnly("org.springframework.boot:spring-boot-devtools")
//runtimeOnly("org.mariadb.jdbc:mariadb-java-client")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
annotationProcessor("org.projectlombok:lombok")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.restdocs:spring-restdocs-mockmvc")
//testImplementation("org.springframework.security:spring-security-test")
}