Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ Session.vim

# Minecraft Server
/logs
*.log
*.log
131 changes: 131 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
plugins {
id 'java'
id 'maven'

id 'idea'
id 'eclipse'

id 'com.github.johnrengelman.shadow' version '1.2.1'
}

ext {
name = 'CanaryMod'
inceptionYear = '2012'
packaging = 'jar'
url = 'http://www.canarymod.net'
organization = 'CanaryMod Team'

libVersion = '1.2.1-SNAPSHOT'
serverVersion = '1.8.0_01-SNAPSHOT'
}

sourceCompatibility = '1.6'
targetCompatibility = '1.6'

group = 'net.canarymod'
archivesBaseName = 'CanaryMod'
version = "1.8.0-$libVersion"

configurations {
deployerJars
}

repositories {
mavenCentral()
maven {
name = 'Visual Illusions Repository'
url = 'http://nexus.visualillusionsent.net/content/groups/public/'
}
maven {
name = 'Minecraft Libraries'
url = 'https://libraries.minecraft.net'
}
maven {
name = 'mcstats.org releases'
url = 'http://repo.mcstats.org/content/repositories/releases/'
}
maven {
name = 'mcstats.org snapshots'
url = 'http://repo.mcstats.org/content/repositories/snapshots/'
}
}

dependencies {
compile 'net.canarymod:CanaryLib:' + libVersion
compile 'net.minecraft:server:' + serverVersion
compile 'jline:jline:2.11'

testCompile 'junit:junit:4.12'

deployerJars 'org.apache.maven.wagon:wagon-ftp:2.2'
}

shadowJar {
exclude 'META-INF/*.SF'
exclude 'META-INF/*.DSA'
exclude 'META-INF/*.RSA'
relocate 'org.mcstats', 'net.canarymod.metrics'
classifier 'shaded'
}
assemble.dependsOn shadowJar

jar {
manifest {
attributes(
'Implementation-Name': name,
'Implementation-Version': version,
'Implementation-Vendor': organization,
'Implementation-Vendor-Id': 'net.canarymod',
'Specification-Name': 'CanaryLib',
'Specification-Version': libVersion,
'Specification-Vendor': 'CanaryMod Team',
'Specification-Vendor-Id': 'net.canarymod',
'Main-Class': 'net.canarymod.Main',
'Server-Version': serverVersion,
'Class-Path': 'lib/'
)
}
}

task wrapper(type: Wrapper) {
gradleVersion = '2.10'
}

uploadArchives {
repositories {
mavenDeployer {
configuration = configurations.deployerJars

if(project.hasProperty('repo')) {
repository(url: project.repo) {
authentication(userName: project.repoUserName, password: project.repoPassword)
}
}

pom {
groupId = project.group
artifactId = project.archivesBaseName
version = project.version
project {
name project.archivesBaseName
packaging project.packaging
url project.url

scm {
url 'https://github.com/CanaryModTeam/CanaryMod'
connection 'scm:git:git://github.com/CanaryModTeam/CanaryMod.git'
developerConnection 'scm:git:git@github.com:CanaryModTeam/CanaryMod.git'
}

licenses {
license {
name 'BSD 3-Clause License'
url 'http://opensource.org/licenses/BSD-3-Clause'
distribution 'repo'
}
}
}
}
}
}
}
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Wed Jan 20 16:49:51 GMT 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-bin.zip
160 changes: 160 additions & 0 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

90 changes: 90 additions & 0 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading