1 Star 0 Fork 1

Dyson/l2j_server

forked from 我不明白/l2j_server 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle 4.27 KB
一键复制 编辑 原始数据 按行查看 历史
apply plugin: 'java'
apply plugin: 'distribution'
apply plugin: 'eclipse'
defaultTasks('clean', 'build')
sourceCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
}
configurations.all {
transitive = false
}
dependencies {
compile 'com.mchange:c3p0:0.9.5.2'
compile 'com.jolbox:bonecp:0.8.0.RELEASE'
compile 'com.sun.mail:javax.mail:1.5.6'
compile 'com.zaxxer:HikariCP:2.6.0'
compile 'mysql:mysql-connector-java:6.0.5'
compile 'org.mariadb.jdbc:mariadb-java-client:1.5.9'
compile 'org.bitlet:weupnp:0.1.4'
compile 'org.eclipse.jdt.core.compiler:ecj:4.4.2'
compile 'com.google.guava:guava:21.0'
compile 'org.python:jython:2.2.1'
compile 'org.slf4j:slf4j-api:1.7.23'
compile 'org.slf4j:slf4j-jdk14:1.7.23'
compile fileTree(dir: 'dist/libs', include: '*.jar')
testCompile 'org.testng:testng:6.10'
testCompile 'com.beust:jcommander:1.48'
testCompile 'org.mockito:mockito-core:2.7.9'
testCompile 'net.bytebuddy:byte-buddy:1.6.8'
testCompile 'net.bytebuddy:byte-buddy-agent:1.6.8'
testCompile 'org.objenesis:objenesis:2.5.1'
testCompile 'org.jmockit:jmockit:1.30'
}
def generalManifest = manifest {
attributes('Built-By': System.getProperty('user.name'),
'Built-Date': new Date().format("yyyy-MM-dd HH:mm:ss"),
'Implementation-URL': 'http://www.l2jserver.com/',
'Class-Path': configurations.runtime.collect { '../libs/' + it.name }.join(' '))
}
jar {
archiveName = 'l2jserver.jar'
exclude('**/dbinstaller/**')
exclude('**/loginserver/**')
exclude('**/accountmanager/**')
exclude('**/gsregistering/**')
manifest {
from(generalManifest)
attributes('Main-Class': 'com.l2jserver.gameserver.GameServer')
}
}
task loginJar(type: Jar, dependsOn: classes) {
from(sourceSets.main.output)
archiveName = 'l2jlogin.jar'
exclude('**/dbinstaller/**')
exclude('**/gameserver/**')
manifest {
from(generalManifest)
attributes('Main-Class': 'com.l2jserver.loginserver.L2LoginServer')
}
}
task configuratorJar(type: Jar, dependsOn: classes) {
from(sourceSets.main.output)
archiveName = 'L2J_Configurator.jar'
include('**/configurator/**')
include('**/i18n/**')
include('**/images/**')
exclude('**/accountmanager/**')
exclude('**/dbinstaller/**')
exclude('**/gameserver/**')
exclude('**/gsregistering/**')
exclude('**/log/**')
exclude('**/loginserver/**')
exclude('**/status/**')
exclude('**/util/**')
exclude('**/Config/**')
exclude('**/ConnectionFactory/**')
exclude('**/Server/**')
manifest {
from(generalManifest)
attributes('Main-Class': 'com.l2jserver.tools.configurator.ConfigUserInterface')
}
}
task dbInstLsJar(type: Jar, dependsOn: classes) {
from(sourceSets.main.output)
archiveName = 'dbinst_ls.jar'
include '**/dbinstaller/**'
include '**/images/**'
include '**/util/**'
include '**/SQLFilter**'
exclude '**/LauncherGS*'
manifest {
from(generalManifest)
attributes('Main-Class': 'com.l2jserver.tools.dbinstaller.LauncherLS')
}
}
task dbInstGsJar(type: Jar, dependsOn: classes) {
from(sourceSets.main.output)
archiveName = 'dbinst_gs.jar'
include('**/dbinstaller/**')
include('**/images/**')
include('**/util/**')
include('**/SQLFilter**')
exclude('**/LauncherLS*')
manifest {
from(generalManifest)
attributes 'Main-Class': 'com.l2jserver.tools.dbinstaller.LauncherGS'
}
}
artifacts {
archives loginJar, configuratorJar, dbInstLsJar, dbInstGsJar
}
task zip(type: Zip, dependsOn: build) {
from('dist') {
exclude('libs')
}
into('libs') {
from(configurations.runtime)
}
into('game') {
from(jar)
from(configuratorJar)
}
into('login') {
from(loginJar)
}
into('tools') {
from(dbInstLsJar)
from(dbInstGsJar)
}
baseName = 'L2J_Server_' + new Date().format("yyyy-MM-dd")
println 'Build in build/distributions/' + baseName + '.zip'
}
build.finalizedBy(zip)
task wrapper(type: Wrapper) {
gradleVersion = '3.4'
}
eclipse {
project {
name = 'L2J_Server'
comment 'L2J Server Project'
natures 'org.eclipse.buildship.core.gradleprojectbuilde'
}
jdt {
file {
whenMerged {jdt ->
def propertiesField = org.gradle.plugins.ide.internal.generator.PropertiesPersistableConfigurationObject.getDeclaredField('properties')
propertiesField.accessible = true
Properties properties = propertiesField.get(jdt)
properties.setProperty 'org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch', 'ignore'
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/DysonSphere/l2j_server.git
git@gitee.com:DysonSphere/l2j_server.git
DysonSphere
l2j_server
l2j_server
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385