代码拉取完成,页面将自动刷新
plugins {
id 'java'
}
group = 'cc.sirrus.andrea'
def plug_version = "Alpha_0.4"
version = plug_version
repositories {
mavenCentral()
maven {
name = 'spigotmc-repo'
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
}
dependencies {
compileOnly 'org.bukkit:bukkit:1.15.2-R0.1-SNAPSHOT'
implementation 'cn.hutool:hutool-all:5.8.20'
// https://mvnrepository.com/artifact/org.smartboot.http/smart-http-server
implementation group: 'org.smartboot.http', name: 'smart-http-server', version: '1.2.4'
// https://mvnrepository.com/artifact/org.java-websocket/Java-WebSocket
implementation group: 'org.java-websocket', name: 'Java-WebSocket', version: '1.5.3'
}
def targetJavaVersion = 8
java {
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
}
tasks.withType(JavaCompile).configureEach {
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
options.release = targetJavaVersion
}
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('plugin.yml') {
expand props
}
}
jar {
archivesBaseName = 'AndreaWSIO_bukkit'//基本的文件名
archiveVersion = plug_version //版本
manifest { //配置jar文件的manifest
attributes(
"Manifest-Version": 1.0,
'Main-Class': 'cc.sirrus.andrea.andreawsio.AndreaWSIO' //指定main方法所在的文件
)
}
//打包依赖包
from {
(configurations.runtimeClasspath).collect {
it.isDirectory() ? it : zipTree(it)
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。