12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- plugins {
- id 'java'
- }
- group = 'com.utic.its'
- version = '0.0.1'
- sourceCompatibility = '1.8'
- targetCompatibility = '1.8'
- compileJava.options.encoding = 'UTF-8'
- repositories {
- mavenCentral()
- }
- dependencies {
- // lombok 라이브러리 추가 시작
- // implementation 'org.slf4j:slf4j-api'
- // implementation 'org.slf4j:slf4j-simple'
- implementation 'org.slf4j:slf4j-api:1.7.32' // SLF4J API 만 유지 (필수)
- // implementation 'ch.qos.logback:logback-classic:1.2.7' // Logback 추가 (Spring Boot 기본 옵션)
- compileOnly 'org.projectlombok:lombok'
- annotationProcessor 'org.projectlombok:lombok'
- testCompileOnly 'org.projectlombok:lombok'
- testAnnotationProcessor 'org.projectlombok:lombok'
- // lombok 라이브러리 추가 끝
- }
- processResources {
- enabled = false
- }
- jar {
- enabled = true
- }
- test {
- useJUnitPlatform()
- }
- tasks.register('runInstallJarLibrary', Exec) {
- doFirst {
- println "utic-its-asn1 library install mvn repository..."
- workingDir = file('.')
- commandLine = ['cmd', '/C', 'start', 'install.bat']
- // cmd /C start ./install.bat
- }
- }
- jar.finalizedBy runInstallJarLibrary
- compileJava.options.encoding = 'UTF-8'
- tasks.withType(JavaCompile).configureEach {
- options.compilerArgs << '-Xlint:unchecked'
- options.deprecation = true
- options.encoding = 'UTF-8'
- }
|