Files
kamco-cd-cron/shp-exporter/build.gradle

90 lines
2.0 KiB
Groovy
Executable File

plugins {
id 'java'
id 'org.springframework.boot' version '3.5.7'
id 'io.spring.dependency-management' version '1.1.7'
id 'com.diffplug.spotless' version '6.25.0'
}
group = 'com.kamco'
version = '1.0.0'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
repositories {
mavenCentral()
maven {
url 'https://repo.osgeo.org/repository/release/'
}
maven {
url 'https://repo.osgeo.org/repository/geotools-releases/'
}
maven {
url 'https://repo.osgeo.org/repository/snapshot/'
}
}
ext {
geoToolsVersion = '30.0'
}
configurations.all {
exclude group: 'javax.media', module: 'jai_core'
}
bootJar {
archiveFileName = "shp-exporter.jar"
}
jar {
enabled = false // plain.jar 안 만들기(혼동 방지)
}
dependencies {
// Spring Boot
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-batch'
// Database
implementation 'org.postgresql:postgresql'
implementation 'com.zaxxer:HikariCP'
// PostGIS
implementation 'net.postgis:postgis-jdbc:2.5.1'
// JTS Geometry
implementation 'org.locationtech.jts:jts-core:1.19.0'
// GeoTools
implementation "org.geotools:gt-shapefile:${geoToolsVersion}"
implementation "org.geotools:gt-referencing:${geoToolsVersion}"
implementation "org.geotools:gt-epsg-hsql:${geoToolsVersion}"
implementation "org.geotools:gt-geojson:${geoToolsVersion}"
// Logging
implementation 'org.slf4j:slf4j-api'
// Testing
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
spotless {
java {
googleJavaFormat('1.19.2')
indentWithSpaces(2)
trimTrailingWhitespace()
endWithNewline()
}
}
tasks.named('test') {
useJUnitPlatform()
}