加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 1.52 KB
一键复制 编辑 原始数据 按行查看 历史
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.50'
id 'com.github.johnrengelman.shadow' version '4.0.1'
id 'maven'
}
group 'cn.plugins.generator'
version '1.0.8'
repositories {
mavenLocal()
maven { url 'https://maven.aliyun.com/repository/public/' }
mavenCentral()
}
// 指定发布的仓库路径
def localMavenRepo = 'file://' + new File(System.getProperty('user.home'), '.m2/repository').absolutePath
uploadArchives() {
repositories {
mavenDeployer {
repository(url: localMavenRepo)
pom.project {
name = project.name
packaging = 'jar'
description = 'code generate gradle task'
}
}
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation group: 'mysql', name: 'mysql-connector-java', version: '8.0.23'
implementation group: 'org.freemarker', name: 'freemarker', version: '2.3.31'
implementation group: 'org.postgresql', name: 'postgresql', version: '42.2.19'
implementation group: 'com.alibaba', name: 'druid', version: '1.2.8'
compileOnly group: 'org.apache.maven.plugin-tools', name: 'maven-plugin-annotations', version: '3.6.1'
implementation group: 'org.apache.maven', name: 'maven-plugin-api', version: '3.8.3'
//Gradle Plugin 依赖
implementation gradleApi()
//本地发布 Plugin
//implementation localGroovy()
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化