38 lines
796 B
Groovy
38 lines
796 B
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.beryx.jlink' version '2.24.2'
|
|
}
|
|
|
|
group 'cmy'
|
|
version '1.0.0'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
|
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
|
|
implementation group: 'org.jsoup', name: 'jsoup', version: '1.14.2'
|
|
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.12.5'
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
application {
|
|
mainModule = 'cmy.newsspider'
|
|
mainClass = 'cmy.newsspider.Main'
|
|
}
|
|
allprojects {
|
|
repositories {
|
|
maven { url 'https://maven.aliyun.com/repository/public/' }
|
|
mavenLocal()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
tasks.withType(JavaCompile) {
|
|
options.encoding = "UTF-8"
|
|
}
|