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
81 changes: 81 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
apply plugin: 'java'

group = 'net.canarymod'
version = '2.0.0-SNAPSHOT'

sourceCompatibility = 1.8
targetCompatibility = 1.8

repositories {
mavenLocal()
mavenCentral()
maven {
name 'vi-repo'
url 'http://repo.visualillusionsent.net/repository/internal/'
}
maven {
name 'vi-snapshots'
url 'http://repo.visualillusionsent.net/repository/snapshots/'
}
maven {
name 'mojang'
url 'https://libraries.minecraft.net/'
}
maven {
name 'mcstats'
url 'http://repo.mcstats.org/content/repositories/releases/'
}
maven {
name 'mcstats.snapshots'
url 'http://repo.mcstats.org/content/repositories/snapshots/'
}
}

dependencies {
// Provided by Minecraft
compile 'com.google.guava:guava:21.0'
compile 'com.google.code.gson:gson:2.8.0'
compile 'com.mojang:authlib:1.5.25'

// Logging
compile 'org.slf4j:slf4j-api:1.7.25'

// Other
compile 'net.visualillusionsent:viutils:1.4.2'
compile 'org.jdom:jdom2:2.0.5'
compile 'com.zaxxer:HikariCP:2.7.4'
compile 'com.googlecode.json-simple:json-simple:1.1.1'
compile 'org.mcstats.standalone:metrics:R7'

// Runtime
compile 'org.xerial:sqlite-jdbc:3.8.7'
compile 'mysql:mysql-connector-java:5.1.34'

testCompile 'junit:junit:4.12'
}

// Source compiler configuration
tasks.withType(JavaCompile) {
options.compilerArgs += ['-Xlint:all', '-Xlint:-path', '-parameters']
options.deprecation = true
options.encoding = 'UTF-8'
}

javadoc {
options.encoding = 'UTF-8'
options.charSet = 'UTF-8'
options.links(
'https://google.github.io/guava/releases/21.0/api/docs/',
'http://www.slf4j.org/apidocs/',
'http://www.jdom.org/docs/apidocs/',
'http://www.mchange.com/projects/c3p0/apidocs/',
'https://docs.oracle.com/javase/8/docs/api/'
)

// Disable the crazy super-strict doclint tool in Java 8
options.addStringOption('Xdoclint:none', '-quiet')
}

task wrapper(type: Wrapper) {
gradleVersion = '4.1'
}
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name = CanaryLib
url = http://www.canarymod.net
inceptionYear = 2012
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-bin.zip
172 changes: 172 additions & 0 deletions gradlew

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

84 changes: 84 additions & 0 deletions gradlew.bat

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

Loading