代码拉取完成,页面将自动刷新
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"
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。