ShoppingCrawler/build.gradle

76 lines
1.6 KiB
Groovy

plugins {
id 'java'
id 'idea'
id 'org.springframework.boot' version '2.5.4'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'com.google.cloud.tools.jib' version '3.4.0'
}
group = 'com.myoa.engineering.crawl.shopping'
version = '1.1.1'
sourceCompatibility = JavaVersion.VERSION_17
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
subprojects {
group = 'com.myoa.engineering.crawl.shopping'
version = '1.1.1'
sourceCompatibility = JavaVersion.VERSION_17
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: "com.google.cloud.tools.jib"
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
ext {
set('springCloudVersion', "2020.0.4")
set("BASE_IMAGE_REGISTRY_URL", "192.168.0.10:10001")
}
apply from: "${project.rootDir}/jib.gradle"
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
}