| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- plugins {
- id 'java'
- }
- group = 'com.evps'
- version = '0.0.1'
- repositories {
- mavenCentral()
- }
- dependencies {
- // lombok 라이브러리 추가 시작
- compileOnly 'org.projectlombok:lombok'
- annotationProcessor 'org.projectlombok:lombok'
- testCompileOnly 'org.projectlombok:lombok'
- testAnnotationProcessor 'org.projectlombok:lombok'
- // lombok 라이브러리 추가 끝
- implementation 'io.netty:netty-all:4.1.52.Final'
- implementation 'com.fasterxml.jackson.core:jackson-databind'
- testImplementation platform('org.junit:junit-bom:5.10.0')
- testImplementation 'org.junit.jupiter:junit-jupiter'
- }
- processResources {
- enabled = false
- }
- bootJar {
- enabled = false
- }
- jar {
- enabled = true
- }
- test {
- useJUnitPlatform()
- }
- tasks.register('runInstallJarLibrary', Exec) {
- doFirst {
- println "evps-common library install mvn repository..."
- def os = org.gradle.internal.os.OperatingSystem.current()
- workingDir = file('.')
- if (os.isWindows()) {
- commandLine 'cmd', '/C', 'start', 'install.bat'
- } else {
- commandLine 'sh', './install.sh'
- }
- }
- }
- jar.finalizedBy runInstallJarLibrary
- compileJava.options.encoding = 'UTF-8'
- tasks.withType(JavaCompile).configureEach {
- options.compilerArgs << '-Xlint:unchecked'
- options.deprecation = true
- options.encoding = 'UTF-8'
- }
|