代码拉取完成,页面将自动刷新
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
// License plugin
classpath 'gradle.plugin.nl.javadude.gradle.plugins:license-gradle-plugin:0.14.0'
// Stats plugin
classpath 'org.kordamp.gradle:stats-gradle-plugin:0.2.2'
// JaCoCo log plugin
classpath 'gradle.plugin.org.barfuin.gradle.jacocolog:gradle-jacoco-log:2.0.0'
}
}
apply plugin: 'base'
apply plugin: 'distribution'
apply plugin: 'groovy'
apply plugin: 'org.barfuin.gradle.jacocolog'
apply from: "${rootDir}/gradle/common.gradle"
apply from: "${rootDir}/gradle/publishing-common.gradle"
evaluationDependsOnChildren()
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation localGroovy()
implementation group: 'commons-io', name: 'commons-io', version: '2.11.0'
}
subprojects {
apply from: rootProject.file('gradle/common.gradle')
apply from: rootProject.file('gradle/publishing-java.gradle')
}
distributions {
main {
contents.from {
project(':openTCS-Example-Kernel').ext.collectableDistDir
}
contents.from {
project(':openTCS-Example-KernelControlCenter').ext.collectableDistDir
}
contents.from {
project(':openTCS-Example-ModelEditor').ext.collectableDistDir
}
contents.from {
project(':openTCS-Example-OperationsDesk').ext.collectableDistDir
}
contents.from {
project(':openTCS-Example-Documentation').ext.collectableDistDir
}
}
}
task statsAggregate(type: org.kordamp.gradle.stats.AggregateStatsReportTask) {
dependsOn subprojects*.stats
}
task subDists {
dependsOn(':openTCS-Example-Kernel:installDist')
dependsOn(':openTCS-Example-KernelControlCenter:installDist')
dependsOn(':openTCS-Example-ModelEditor:installDist')
dependsOn(':openTCS-Example-OperationsDesk:installDist')
dependsOn(':openTCS-Example-Documentation:installDist')
}
installDist.dependsOn subDists
distZip {
classifier = 'bin'
dependsOn subDists
}
distTar {
classifier = 'bin'
dependsOn subDists
compression = Compression.GZIP
}
task distSrcZip(type: Zip) {
classifier = 'src'
from "${rootDir}"
includes << 'config/**'
includes << 'gradle/**'
includes << 'lib/**'
includes << 'openTCS-*/**'
includes << 'src/**'
includes << '.nb-gradle-properties'
includes << '*.gradle'
includes << 'gradlew'
includes << 'gradlew.bat'
includes << 'README.md'
excludes << '.gradle'
excludes << '**/build'
}
artifacts {
archives distZip
archives distTar
archives distSrcZip
}
build {
dependsOn subprojects*.build
dependsOn installDist
}
// tag::cloneTask
task cloneProject(type: JavaExec) {
main = 'org.opentcs.scripts.CloneScript'
classpath = sourceSets.main.runtimeClasspath
def integrationName = 'MyCustomProject'
def classPrefix = 'Custom'
def packageName = 'com.example'
if (project.hasProperty('integrationName')) {
integrationName = project.getProperty('integrationName')
}
if (project.hasProperty('classPrefix')) {
classPrefix = project.getProperty('classPrefix')
}
if (project.hasProperty('packageName')) {
packageName = project.getProperty('packageName')
}
// Pass command-line argument to script, if any.
args integrationName, classPrefix, packageName
}
// tag::cloneTask
publish.dependsOn subprojects*.publish
publishing {
publications {
maven(MavenPublication) {
artifact distZip
artifact distSrcZip
pom {
artifactId = 'distribution'
}
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。