forked from SpongePowered/SpongeAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Plugin/Event API portions inspired/based upon Spout/Flow and FML. Thanks to all those involved Signed-off-by: Chris Sanders <[email protected]>
- Loading branch information
Chris Sanders
committed
Sep 8, 2014
0 parents
commit 5a96c64
Showing
26 changed files
with
1,254 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Normalize as LF in the repository, OS native locally | ||
* text=auto | ||
*.java text | ||
|
||
# Binary files that should not be modified | ||
*.dat binary | ||
*.db binary | ||
*.icns binary | ||
*.ico binary | ||
*.jar binary | ||
*.jks binary | ||
*.jpg binary | ||
*.key binary | ||
*.png binary | ||
*.ttf binary | ||
*.wav binary | ||
JavaApplicationStub binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# Build # | ||
######### | ||
MANIFEST.MF | ||
dependency-reduced-pom.xml | ||
|
||
# Compiled # | ||
############ | ||
bin | ||
build | ||
dist | ||
lib | ||
out | ||
run | ||
target | ||
*.com | ||
*.class | ||
*.dll | ||
*.exe | ||
*.o | ||
*.so | ||
|
||
# Databases # | ||
############# | ||
*.db | ||
*.sql | ||
*.sqlite | ||
|
||
# Packages # | ||
############ | ||
*.7z | ||
*.dmg | ||
*.gz | ||
*.iso | ||
*.rar | ||
*.tar | ||
*.zip | ||
|
||
# Repository # | ||
############## | ||
.git | ||
|
||
# Logging # | ||
########### | ||
/logs | ||
*.log | ||
|
||
# Misc # | ||
######## | ||
*.bak | ||
|
||
# System # | ||
########## | ||
.DS_Store | ||
ehthumbs.db | ||
Thumbs.db | ||
|
||
# Project # | ||
########### | ||
.classpath | ||
.externalToolBuilders | ||
.gradle | ||
.idea | ||
.project | ||
.settings | ||
eclipse | ||
nbproject | ||
atlassian-ide-plugin.xml | ||
build.xml | ||
nb-configuration.xml | ||
*.iml | ||
*.ipr | ||
*.iws |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
This file is part of ${name}, licensed under the MIT License (MIT). | ||
|
||
Copyright (c) ${year} ${organization} <${url}/> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
The MIT License (MIT) | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
SpongeAPI | ||
========= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
// Default tasks | ||
defaultTasks 'licenseFormat', 'build', 'install' | ||
|
||
// Apply plugin | ||
apply plugin: 'java' | ||
apply plugin: 'license' | ||
apply plugin: 'maven' | ||
apply plugin: 'signing' | ||
|
||
// Basic project information | ||
group = 'org.spongepowered' | ||
archivesBaseName = 'spongeapi' | ||
version = '1.0.0-SNAPSHOT' | ||
|
||
// Extended project information | ||
ext.projectName = 'SpongeAPI' | ||
ext.inceptionYear = '2014' | ||
ext.packaging = 'jar' | ||
ext.url = 'http://spongepowered.org' | ||
ext.description = 'SpongeAPI' | ||
ext.organization = 'SpongePowered' | ||
|
||
// Define variables | ||
ext.buildNumber = project.hasProperty("buildNumber") ? buildNumber : '0' | ||
ext.ciSystem = project.hasProperty("ciSystem") ? ciSystem : 'unknown' | ||
ext.commit = project.hasProperty("commit") ? commit : 'unknown' | ||
|
||
// Minimum version of Java required | ||
sourceCompatibility = '1.6' | ||
targetCompatibility = '1.6' | ||
|
||
// Configuration settings | ||
configurations.all { | ||
resolutionStrategy.cacheChangingModulesFor 0, 'seconds' // Always check for new snapshots | ||
} | ||
|
||
// Gradle repositories and dependencies | ||
buildscript { | ||
repositories { | ||
jcenter() | ||
} | ||
dependencies { | ||
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.11.0' | ||
} | ||
} | ||
|
||
// Project repositories | ||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
maven { | ||
name = 'sonatype-nexus-public' | ||
url = 'https://oss.sonatype.org/content/repositories/public/' | ||
} | ||
} | ||
|
||
// Project dependencies | ||
dependencies { | ||
compile 'org.apache.logging.log4j:log4j-api:2.0.2' | ||
} | ||
|
||
// Filter, process, and include resources | ||
processResources { | ||
// Include in final JAR | ||
from(rootProject.rootDir) { | ||
include 'LICENSE.txt' | ||
} | ||
} | ||
|
||
license { | ||
ext.name = project.name | ||
ext.organization = organization | ||
ext.url = url | ||
ext.year = inceptionYear | ||
header rootProject.file('HEADER.txt') | ||
ignoreFailures true | ||
strictCheck true | ||
} | ||
|
||
// Source compiler configuration | ||
configure([compileJava, compileTestJava]) { | ||
options.compilerArgs << '-Xlint:all' | ||
options.compilerArgs << '-Xlint:-path' | ||
options.deprecation = true | ||
} | ||
|
||
// JAR manifest configuration | ||
jar.manifest.mainAttributes( | ||
"Built-By": System.properties['user.name'], | ||
"Created-By": System.properties['java.vm.version'] + " (" + System.properties['java.vm.vendor'] + ")", | ||
"Implementation-Title": name, | ||
"Implementation-Version": version + "+" + ciSystem + "-b" + buildNumber + ".git-" + commit, | ||
"Implementation-Vendor": url) | ||
|
||
|
||
|
||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#Sat May 03 12:44:05 CDT 2014 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=http\://services.gradle.org/distributions/gradle-2.0-all.zip |
Oops, something went wrong.