代码拉取完成,页面将自动刷新
同步操作将从 我不明白/l2j_server 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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'
}
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。