Skip to content

Commit 83b2bf7

Browse files
committed
Initial Commit for unified project
0 parents  commit 83b2bf7

File tree

238 files changed

+22207
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

238 files changed

+22207
-0
lines changed

.gitattributes

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Normalize as LF in the repository, OS native locally
2+
* text=auto
3+
4+
*.bat text eol=crlf
5+
gradlew text eol=lf
6+
*.sh text eol=lf
7+
8+
*.java text
9+
*.java diff=java
10+
11+
# Binary files that should not be modified
12+
*.dat binary
13+
*.db binary
14+
*.icns binary
15+
*.ico binary
16+
*.jar binary
17+
*.jks binary
18+
*.jpg binary
19+
*.key binary
20+
*.png binary
21+
*.ttf binary
22+
*.wav binary
23+
JavaApplicationStub binary

.gitignore

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Build #
2+
#########
3+
MANIFEST.MF
4+
dependency-reduced-pom.xml
5+
6+
# Compiled #
7+
############
8+
bin
9+
build
10+
dist
11+
lib
12+
out
13+
run
14+
target
15+
*.com
16+
*.class
17+
*.dll
18+
*.exe
19+
*.o
20+
*.so
21+
22+
# Databases #
23+
#############
24+
*.db
25+
*.sql
26+
*.sqlite
27+
28+
# Packages #
29+
############
30+
*.7z
31+
*.dmg
32+
*.gz
33+
*.iso
34+
*.rar
35+
*.tar
36+
*.zip
37+
38+
# Repository #
39+
##############
40+
.git
41+
42+
# Logging #
43+
###########
44+
/logs
45+
*.log
46+
47+
# Misc #
48+
########
49+
*.bak
50+
51+
# System #
52+
##########
53+
.DS_Store
54+
ehthumbs.db
55+
Thumbs.db
56+
57+
# Project #
58+
###########
59+
.classpath
60+
.externalToolBuilders
61+
.gradle
62+
.idea
63+
.project
64+
.settings
65+
.checkstyle
66+
.factorypath
67+
run
68+
eclipse
69+
nbproject
70+
atlassian-ide-plugin.xml
71+
build.xml
72+
nb-configuration.xml
73+
*.iml
74+
*.ipr
75+
*.iws
76+
/.apt_generated/

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "SpongeAPI"]
2+
path = SpongeAPI
3+
url = https://github.com/SpongePowered/SpongeAPI.git

.travis.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
sudo: false
2+
3+
language: java
4+
jdk:
5+
- openjdk6
6+
- openjdk7
7+
- oraclejdk7
8+
- oraclejdk8
9+
10+
env: GRADLE_OPTS="-Xms1g -Xmx3g"
11+
install: ./gradlew setupCIWorkspace
12+
script: ./gradlew build
13+
14+
notifications:
15+
email: false

CONTRIBUTING.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Contribution Guidelines
2+
3+
We will always have a need for developers to help us improve Sponge. There is no such thing as a perfect project and things can always be improved. If you are a developer and are interested in helping then please do not hesitate. Just make sure you follow our guidelines.
4+
5+
Please check our [Contribution Guidelines in the Sponge Documentation](https://docs.spongepowered.org/en/contributing/guidelines.html) for more information.

LICENSE.txt

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
The MIT License (MIT)
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

README.md

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
Sponge [![Build Status](https://travis-ci.org/SpongePowered/Sponge.svg?branch=master)](https://travis-ci.org/SpongePowered/Sponge)
2+
=============
3+
**Currently not stable and under heavy development!**
4+
A Forge implementation of the Sponge API. It is licensed under the [MIT License].
5+
6+
* [Homepage]
7+
* [Source]
8+
* [Issues]
9+
* [SpongeAPI Wiki]
10+
* [Sponge Wiki]
11+
* [Community Chat]: #sponge on irc.esper.net
12+
* [Development Chat]: #spongedev on irc.esper.net
13+
14+
## Prerequisites
15+
* [Java] 6
16+
17+
## Clone
18+
The following steps will ensure your project is cloned properly.
19+
1. `git clone --recursive https://github.com/SpongePowered/Sponge.git`
20+
2. `cd Sponge`
21+
3. `cp scripts/pre-commit .git/hooks`
22+
23+
## Setup
24+
__Note:__ If you do not have [Gradle] installed then use ./gradlew for Unix systems or Git Bash and gradlew.bat for Windows systems in place of any 'gradle' command.
25+
26+
__For [Eclipse]__
27+
1. Run `gradle setupDecompWorkspace --refresh-dependencies`
28+
2. Run `gradle eclipse`
29+
3. Import Sponge as an existing project (File > Import > General)
30+
4. Select the root folder for Sponge and make sure `Search for nested projects` is enabled
31+
5. Check Sponge when it finishes building and click **Finish**
32+
33+
__For [IntelliJ]__
34+
1. Run `gradle setupDecompWorkspace --refresh-dependencies`
35+
2. Make sure you have the Gradle plugin enabled (File > Settings > Plugins).
36+
3. Click File > New > Project from Existing Sources > Gradle and select the root folder for Sponge.
37+
38+
## Contributing
39+
Are you a talented programmer looking to contribute some code? We'd love the help!
40+
* Open a pull request with your changes, following our [guidelines](CONTRIBUTING.md).
41+
* Please follow the above guidelines for your pull request(s) to be accepted.
42+
43+
[Eclipse]: http://www.eclipse.org/
44+
[Gradle]: http://www.gradle.org/
45+
[Homepage]: http://spongepowered.org/
46+
[IntelliJ]: http://www.jetbrains.com/idea/
47+
[Issues]: http://issues.spongepowered.org/
48+
[SpongeAPI Wiki]: https://github.com/SpongePowered/SpongeAPI/wiki/
49+
[Sponge Wiki]: https://github.com/SpongePowered/Sponge/wiki/
50+
[Java]: http://java.oracle.com/
51+
[Source]: https://github.com/SpongePowered/Sponge/
52+
[MIT License]: http://www.tldrlegal.com/license/mit-license
53+
[Community Chat]: https://webchat.esper.net/?channels=sponge
54+
[Development Chat]: https://webchat.esper.net/?channels=spongedev

SpongeAPI

Submodule SpongeAPI added at 5e19bf4

build.gradle

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
buildscript {
2+
repositories {
3+
mavenCentral()
4+
jcenter()
5+
maven {
6+
name = 'forge'
7+
url = 'http://files.minecraftforge.net/maven'
8+
}
9+
maven {
10+
name = 'sonatype-snapshots'
11+
url = 'https://oss.sonatype.org/content/repositories/snapshots'
12+
}
13+
maven {
14+
name = 'minecrell-snapshots'
15+
url = 'http://repo.minecrell.net/snapshots'
16+
}
17+
}
18+
19+
dependencies {
20+
classpath 'net.minecrell:VanillaGradle:1.0.1-SNAPSHOT'
21+
classpath('nl.javadude.gradle.plugins:license-gradle-plugin:0.11.0') {
22+
exclude module: 'guava'
23+
}
24+
}
25+
}
26+
27+
version = '0.1-SNAPSHOT' // TODO: ???
28+
29+
ext.common = project
30+
apply plugin: 'net.minecrell.vanilla.base'
31+
ext.minecraftPlugin = plugins.getPlugin('net.minecrell.vanilla.base')
32+
apply from: 'gradle/minecraft.gradle'
33+
34+
dependencies {
35+
compile api
36+
compile('org.spongepowered:mixin:0.3-SNAPSHOT') {
37+
exclude module: 'launchwrapper'
38+
exclude module: 'guava'
39+
}
40+
41+
compile('com.zaxxer:HikariCP-java6:2.3.6') {
42+
exclude module: 'slf4j-api'
43+
}
44+
45+
runtime 'org.apache.logging.log4j:log4j-slf4j-impl:2.0-beta9'
46+
runtime 'org.mariadb.jdbc:mariadb-java-client:1.1.8'
47+
runtime 'com.h2database:h2:1.4.187'
48+
runtime 'org.xerial:sqlite-jdbc:3.8.7'
49+
}
50+
51+
// Add Javadocs for example sources
52+
javadoc {
53+
source 'src/example/java'
54+
}

checkstyle-suppressions.xml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE suppressions PUBLIC "-//Puppy Crawl//DTD Suppressions 1.1//EN" "http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">
3+
4+
<suppressions>
5+
<suppress checks="(JavadocMethod|(Method|Member|Parameter|LocalVariable)Name)" files="src[\\/](main|test)[\\/]java"/>
6+
<suppress checks="Indentation" files="package-info\.java"/>
7+
<suppress checks="AbbreviationAsWordInName" files="[\\/]mixin[\\/]"/>
8+
</suppressions>

gradle.properties

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name=SpongeCommon
2+
implementation=Common
3+
description=Shared code between Sponge and SpongeVanilla
4+
url=https://www.spongepowered.org
5+
organization=SpongePowered

0 commit comments

Comments
 (0)