add license, wiki, source and issue URLs to properties

This commit is contained in:
dfsek
2021-05-14 23:30:36 -07:00
parent 2c9d195474
commit 6fbb5d712e
5 changed files with 18 additions and 8 deletions
@@ -30,7 +30,11 @@ fun Project.configureCompilation() {
filter<org.apache.tools.ant.filters.ReplaceTokens>( filter<org.apache.tools.ant.filters.ReplaceTokens>(
"tokens" to mapOf( "tokens" to mapOf(
"VERSION" to project.version.toString(), "VERSION" to project.version.toString(),
"DESCRIPTION" to project.properties["terra.description"] "DESCRIPTION" to project.properties["terra.description"],
"WIKI" to project.properties["terra.wiki"],
"SOURCE" to project.properties["terra.source"],
"ISSUES" to project.properties["terra.issues"],
"LICENSE" to project.properties["terra.license"]
) )
) )
} }
+4
View File
@@ -9,3 +9,7 @@ org.gradle.warning.mode=all
#org.gradle.logging.level=info #org.gradle.logging.level=info
# Project information # Project information
terra.description=A fast, modern, extensible, platform-agnostic data-driven world generator terra.description=A fast, modern, extensible, platform-agnostic data-driven world generator
terra.source=https://github.com/PolyhedralDev/Terra
terra.issues=https://github.com/PolyhedralDev/Terra/issues
terra.wiki=https://github.com/PolyhedralDev/Terra/wiki
terra.license=GNU General Public License, version 3.0
@@ -3,6 +3,7 @@ main: "com.dfsek.terra.bukkit.TerraBukkitPlugin"
version: "@VERSION@" version: "@VERSION@"
load: "STARTUP" load: "STARTUP"
author: dfsek author: dfsek
website: "@WIKI@"
api-version: "1.13" api-version: "1.13"
description: "@DESCRIPTION@" description: "@DESCRIPTION@"
softdepend: [ "WorldEdit" ] softdepend: [ "WorldEdit" ]
@@ -8,10 +8,11 @@
"dfsek" "dfsek"
], ],
"contact": { "contact": {
"homepage": "https://github.com/PolyhedralDev/Terra/wiki", "homepage": "@WIKI@",
"sources": "https://github.com/PolyhedralDev/Terra" "sources": "@SOURCE@",
"issues": "@ISSUES@"
}, },
"license": "GPL-3.0", "license": "@LICENSE@",
"icon": "assets/terra/icon.png", "icon": "assets/terra/icon.png",
"environment": "*", "environment": "*",
"entrypoints": { "entrypoints": {
@@ -1,12 +1,12 @@
modLoader = "javafml" modLoader = "javafml"
loaderVersion = "[36,)" loaderVersion = "[36,)"
license = "GNU General Public License, version 3.0" license = "@LICENSE@"
issueTrackerURL = "https://github.com/PolyhedralDev/Terra/issues/" issueTrackerURL = "@ISSUES@"
[[mods]] [[mods]]
modId = "terra" modId = "terra"
version = "@VERSION@" version = "@VERSION@"
displayName = "Terra" displayName = "Terra"
displayURL = "https://github.com/PolyhedralDev/Terra/" displayURL = "@WIKI@"
authors = "dfsek & Terra contributors" authors = "dfsek & Terra contributors"
description = "@DESCRIPTION@" description = "@DESCRIPTION@"
[[dependencies.terra]] [[dependencies.terra]]