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