2024-05-09 00:34:39 +00:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'idea'
|
|
|
|
id 'org.springframework.boot' version '2.5.4'
|
|
|
|
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
|
2024-05-12 14:08:10 +00:00
|
|
|
id 'com.google.cloud.tools.jib' version '3.4.0'
|
2024-05-09 00:34:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
group = 'com.myoa.engineering.crawl.shopping'
|
|
|
|
version = '1.1.1'
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
compileOnly {
|
|
|
|
extendsFrom annotationProcessor
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
2024-05-12 14:08:10 +00:00
|
|
|
subprojects {
|
2024-05-09 00:34:39 +00:00
|
|
|
group = 'com.myoa.engineering.crawl.shopping'
|
|
|
|
version = '1.1.1'
|
2024-05-12 14:08:10 +00:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
2024-05-09 00:34:39 +00:00
|
|
|
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'idea'
|
|
|
|
apply plugin: 'org.springframework.boot'
|
|
|
|
apply plugin: 'io.spring.dependency-management'
|
2024-05-12 14:08:10 +00:00
|
|
|
apply plugin: "com.google.cloud.tools.jib"
|
2024-05-09 00:34:39 +00:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
maven {
|
|
|
|
url "https://plugins.gradle.org/m2/"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ext {
|
|
|
|
set('springCloudVersion', "2020.0.4")
|
2024-05-13 10:34:36 +00:00
|
|
|
set("BASE_IMAGE_REGISTRY_URL", "registry.myoa-universe.com")
|
2024-05-09 00:34:39 +00:00
|
|
|
}
|
|
|
|
|
2024-05-12 14:08:10 +00:00
|
|
|
apply from: "${project.rootDir}/jib.gradle"
|
|
|
|
|
2024-05-09 00:34:39 +00:00
|
|
|
dependencyManagement {
|
|
|
|
imports {
|
|
|
|
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* task initSourceFolders {
|
|
|
|
sourceSets*.java.srcDirs*.each {
|
|
|
|
if( !it.exists() ) {
|
|
|
|
it.mkdirs()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets*.resources.srcDirs*.each {
|
|
|
|
if( !it.exists() ) {
|
|
|
|
it.mkdirs()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}*/
|
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
enabled = false
|
|
|
|
}
|
|
|
|
|
|
|
|
bootJar {
|
|
|
|
enabled = false
|
|
|
|
}
|