Skip to content

Commit

Permalink
New build system, Pre-release 1.0.0-rc.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Wimmer committed Jul 13, 2016
1 parent 6c9ad2e commit a17b1e7
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ plugins {
id "net.minecraftforge.gradle.forge" version "2.0.2"
}
*/
version = "0.5.0"
group= "io.teammion.morefood" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
version = "1.0.0-rc.1"
group = "io.teammion.morefood" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "morefood"

minecraft {
Expand Down
17 changes: 17 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

# Get version
version="$(node <<< "console.log(require(\"./package.json\").version);")"
# Write version
while IFS="" read line
do
if [ "${line:0:10}" == "version = " ]
then
old_version="${line}"
fi
done < build.gradle
sed -i "/${old_version}/c\version = \"${version}\"" build.gradle
# Build
./gradlew clean build
21 changes: 21 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "morefood",
"version": "1.0.0-rc.1",
"description": "This Minecraft Mod will add additional food to Mincraft to provide a healthy variety.",
"scripts": {
"build": "./build.sh"
},
"repository": {
"type": "git",
"url": "git+https://github.com/teammion/morefood.git"
},
"keywords": [
"morefood"
],
"author": "Stefan Wimmer <[email protected]>",
"license": "ISC",
"bugs": {
"url": "https://github.com/teammion/morefood/issues"
},
"homepage": "https://github.com/teammion/morefood#readme"
}

0 comments on commit a17b1e7

Please sign in to comment.