加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 1.77 KB
一键复制 编辑 原始数据 按行查看 历史
Dmitry Barashev 提交于 2020-10-19 20:16 . version 2912
// This installs dependencyUpdates plugin
// Run gradle dependencyUpdates to get the report
// Path to launch4j binary
ext.launch4j = '/opt/launch4j/launch4j'
// Directories where we build the distro
ext.semver = '2.99'
ext.distBinDir = file('ganttproject-builder/dist-bin')
ext.pluginsDir = file("ganttproject-builder/dist-bin/plugins/base")
ext.buildNum = getBuildNum()
version = "${semver}-r${getBuildNum()}"
def getBuildNum() {
return "2912"
/*
def stdout = new ByteArrayOutputStream()
exec {
workingDir "ganttproject-builder"
commandLine "bash", "-c", " git rev-list --count ganttproject-2.7.. || echo 0"
standardOutput = stdout
}
return String.valueOf(Integer.valueOf("${stdout}".trim()) + 1891)
*/
}
// Config for all projects: deps come from Maven repository,
// compile using Java 8, libs normally sit in lib
allprojects {
configurations {
direct
providedCompile
}
repositories {
mavenCentral()
jcenter()
maven {
url "http://sandec.bintray.com/repo"
}
}
apply plugin: 'java'
ext {
libDir = 'lib'
mvnDir = 'lib/mvn'
}
sourceCompatibility = 11
targetCompatibility = 11
clean {
delete += "dist-bin"
}
}
subprojects {
group 'biz.ganttproject'
version = new Date().format("yy.MM.dd")
}
def addPublishing(project) {
project.publishing {
repositories {
maven {
name "ganttproject-maven-repository-internal"
url "gcs://ganttproject-maven-repository/internal"
}
}
}
}
//
//runtime {
// distDir = rootProject.distBinDir
// options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
// modules = ['java.base']
//}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化