Initial commit

This commit is contained in:
Nathan Adams 2014-09-15 12:03:39 +02:00
commit 4801ab8dc9
2 changed files with 140 additions and 0 deletions

70
.gitignore vendored Normal file
View file

@ -0,0 +1,70 @@
# Created by https://www.gitignore.io
### Intellij ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm
/*.iml
## Directory-based project format:
.idea/
# if you remove the above rule, at least ignore the follwing:
# User-specific stuff:
# .idea/workspace.xml
# .idea/tasks.xml
# .idea/dictionaries
# Sensitive or high-churn files:
# .idea/dataSources.ids
# .idea/dataSources.xml
# .idea/sqlDataSources.xml
# .idea/dynamic.xml
# .idea/uiDesigner.xml
# Gradle:
# .idea/gradle.xml
# .idea/libraries
# Mongo Explorer plugin:
# .idea/mongoSettings.xml
## File-based project format:
*.ipr
*.iws
## Plugin-specific files:
# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
### Gradle ###
.gradle
build/
# Ignore Gradle GUI config
gradle-app.setting
### Java ###
*.class
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.ear
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

70
build.gradle Normal file
View file

@ -0,0 +1,70 @@
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'eclipse'
version = '0.0.1'
archivesBaseName = 'minecraft-commands'
group = 'com.mojang'
sourceCompatibility = 1.6
test {
testLogging {
events "failed", "skipped"
showStandardStreams true
showExceptions true
}
}
repositories {
maven {
url "http://s3.amazonaws.com/Minecraft.Download/libraries"
}
mavenCentral()
}
dependencies {
compile 'com.google.code.findbugs:jsr305:2.0.1'
compile 'com.google.guava:guava:17.0'
testCompile 'junit:junit-dep:4.10'
testCompile 'org.hamcrest:hamcrest-library:1.2.1'
testCompile 'org.mockito:mockito-core:1.8.5'
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives jar
archives sourcesJar
}
def repoDir = new File(projectDir, "repo")
repoDir.mkdirs()
uploadArchives {
repositories {
mavenDeployer {
repository(url: "file://" + repoDir.absolutePath)
pom.project {
description 'Minecraft Command Handler'
url 'http://github.com/Mojang/minecraft-commands'
}
}
}
doLast {
// Purge all annoying files that arent needed
repoDir.traverse(type: groovy.io.FileType.FILES, nameFilter: ~/.*\.(xml|xml\.sha1|md5)$/) {
it.delete()
}
}
}
clean << {
repoDir.deleteDir()
}