1 Star 0 Fork 154

lcj8362/GRule

forked from hubert-樂xx/GRule 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 2.68 KB
一键复制 编辑 原始数据 按行查看 历史
xnat 提交于 2022-06-26 16:59 . gradle
//plugins {
// // Apply GraalVM Native Image plugin
// id 'org.graalvm.buildtools.native' version '0.9.5'
//}
repositories {
mavenLocal()
maven { url 'https://maven.aliyun.com/repository/central' }
maven { url 'https://maven.aliyun.com/repository/public' }
mavenCentral()
}
version = '2.0.2'
//apply plugin: 'java'
apply plugin: 'groovy'
compileGroovy { // 保留方法参数的名字(非arg0/arg1...)
groovyOptions.parameters = true
}
// 修改源目录
sourceSets {
main {
groovy {
srcDir 'src'
}
resources {
srcDir 'src/static'
}
}
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
ext {
groovyVersion = '3.0.8'
}
dependencies {
implementation fileTree(dir: 'sysLib', include: ['*.jar'])
implementation "org.codehaus.groovy:groovy:$groovyVersion"
implementation "org.codehaus.groovy:groovy-templates:$groovyVersion"
// implementation "org.codehaus.groovy:groovy-json:$groovyVersion"
// implementation "org.codehaus.groovy:groovy-jmx:$groovyVersion"
implementation 'cn.xnatural:tiny:1.1.6'
implementation 'cn.xnatural:http:1.1.3'
implementation 'cn.xnatural:jpa:1.1.0'
implementation 'cn.xnatural:sched:1.0.3'
implementation 'cn.xnatural.task:task:1.0.2'
// 连接池
implementation 'mysql:mysql-connector-java:8.0.29'
// implementation 'mysql:mysql-connector-java:5.1.49'
implementation 'org.mariadb.jdbc:mariadb-java-client:3.0.4'
implementation 'com.h2database:h2:1.4.199'
implementation 'com.squareup.okhttp3:okhttp:3.14.9'
implementation 'redis.clients:jedis:3.3.0'
implementation 'org.jsoup:jsoup:1.14.3'
}
// 依赖copy
task deps(type: Copy) {
new File('lib').deleteDir()
from configurations.runtimeClasspath
into 'lib'
}
task tgz(dependsOn: ['deps'], type: Tar) {
new File("${buildDir}/grule.tgz").deleteOnExit()
into("bin") {from("bin")}
into("conf") {from "conf"}
into("src") {from("src")}
into("lib") {from "lib"}
into("gradle") {from "gradle"}
from "Dockerfile"
from "build.gradle"
from "gradlew"
from "gradlew.bat"
from "start.bat"
from("start.sh")
archiveFileName = "grule.tgz"
compression(Compression.GZIP)
destinationDirectory = file("${buildDir}")
}
task tarDir(dependsOn: ['deps'], type: Copy) {
new File("${buildDir}/grule").deleteDir()
into("bin") {from("bin")}
into("conf") {from "conf"}
into("src") {from("src")}
into("lib") {from "lib"}
into("gradle") {from "gradle"}
from "Dockerfile"
from "build.gradle"
from "gradlew"
from "gradlew.bat"
from "start.bat"
from("start.sh")
into "${buildDir}/grule"
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Groovy
1
https://gitee.com/lcj8362/grule.git
[email protected]:lcj8362/grule.git
lcj8362
grule
GRule
master

搜索帮助