2 Star 0 Fork 0

衢安/VelocityWhitelist

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 2.02 KB
一键复制 编辑 原始数据 按行查看 历史
plugins {
id 'java'
id 'eclipse'
id "org.jetbrains.gradle.plugin.idea-ext" version "1.0.1"
}
group = properties.get('plugin_group')
version = properties.get('plugin_version')
def plugin_name = properties.get('plugin_name')
def plugin_id = properties.get('plugin_id')
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
repositories {
mavenLocal()
maven {
url 'file:/G:/qu-an/Dev/Maven/repo'
}
mavenCentral()
maven {
url 'https://gitee.com/virtual-qu-an/qu-an-maven/raw/master'
}
maven {
name = 'papermc-repo'
url = 'https://repo.papermc.io/repository/maven-public/'
}
}
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.24'
annotationProcessor 'org.projectlombok:lombok:1.18.24'
compileOnly 'com.velocitypowered:velocity-api:3.1.1'
annotationProcessor 'com.velocitypowered:velocity-api:3.1.1'
compileOnly 'com.electronwill.night-config:toml:3.6.6'
implementation "fun.qu-an.lib.basic:Qu_anBasicLib:1.3.5"
implementation "fun.qu-an.lib.minecraft.vanilla:Qu_anVanillaLib:1.3.2"
implementation "fun.qu-an.minecraft.velocity.api:Qu_anVelocityApi:1.3.8"
}
// 打包时包含依赖
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
exclude()
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
def templateSource = file('src/main/templates')
def templateDest = layout.buildDirectory.dir('generated/sources/templates')
def generateTemplates = tasks.register('generateTemplates', Copy) { task ->
def props = [
'version' : project.version,
'plugin_id' : plugin_id,
'plugin_name': plugin_name
]
task.inputs.properties props
task.from templateSource
task.into templateDest
task.expand props
}
sourceSets.main.java.srcDir(generateTemplates.map { it.outputs })
rootProject.idea.project.settings.taskTriggers.afterSync generateTemplates
project.eclipse.synchronizationTasks(generateTemplates)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/virtual-qu-an/velocity-whitelist.git
git@gitee.com:virtual-qu-an/velocity-whitelist.git
virtual-qu-an
velocity-whitelist
VelocityWhitelist
master

搜索帮助