Skip to content

Commit

Permalink
Update buildscript
Browse files Browse the repository at this point in the history
  • Loading branch information
HyCraftHD committed Aug 4, 2019
1 parent 06c8c14 commit 2eef60c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 23 deletions.
34 changes: 17 additions & 17 deletions build.gradle
Expand Up @@ -7,11 +7,11 @@ buildscript {
}
dependencies {
classpath group: "net.minecraftforge.gradle", name: "ForgeGradle", version: "3.+", changing: true
classpath "gradle.plugin.com.matthewprenger:CurseGradle:1.1.2"
classpath "gradle.plugin.com.matthewprenger:CurseGradle:1.3.0"
}
}

apply from: "https://raw.githubusercontent.com/HyCraftHD/Blank-Forge-Project/master/build.methods"
apply from: "https://raw.githubusercontent.com/HyCraftHD/Blank-Forge-Project/master/configuration.methods"
apply from: "https://raw.githubusercontent.com/HyCraftHD/Blank-Forge-Project/master/git.methods"

setup()
Expand Down Expand Up @@ -78,7 +78,7 @@ def normalManifest = {
attributes(
"Specification-Title": config.mod.name,
"Specification-Vendor": "Team UTeam",
"Specification-Version": "28.0",
"Specification-Version": config.forge.major_version,
"Built-On": config.forge.mcversion,
"Implementation-Title": config.mod.name,
"Implementation-Version": project.version,
Expand All @@ -103,10 +103,10 @@ task deobfJar(type: Jar) {

from sourceSets.main.output
from "LICENSE"
exclude("info/u_team/useful_resources/data")
exclude(".cache")


exclude("info/u_team/useful_resources/data")
exclude(".cache")
manifest normalManifest
}

Expand Down Expand Up @@ -179,8 +179,8 @@ curseforge {
mainArtifact(jar) {
displayName = "${config.curse.display}-${config.forge.mcversion}-${project.version}"
changelogType = "html"
changelog = "<a href=\"${config.curse.changelog}\">Changelog of ${project.version}</a>"
}
changelog = "<a href=\"https://github.com/MC-U-Team/${config.github.name}/blob/${config.github.branch}/CHANGELOG.md\">Changelog of ${project.version}</a>"
}

addArtifact(deobfJar) {
displayName = "${config.curse.display}-${config.forge.mcversion}-${project.version}-dev"
Expand Down Expand Up @@ -208,21 +208,21 @@ uploadArchives {
project {
name project.archivesBaseName
packaging "jar"
description "${config.maven.github_name}"
url "https://github.com/MC-U-Team/${config.maven.github_name}"
description "${config.github.name}"
url "https://github.com/MC-U-Team/${config.github.name}"
scm {
url "https://github.com/MC-U-Team/${config.maven.github_name}"
connection "scm:git:git://github.com/MC-U-Team/${config.maven.github_name}.git"
developerConnection "scm:git:git@github.com:MC-U-Team/${config.maven.github_name}.git"
url "https://github.com/MC-U-Team/${config.github.name}"
connection "scm:git:git://github.com/MC-U-Team/${config.github.name}.git"
developerConnection "scm:git:git@github.com:MC-U-Team/${config.github.name}.git"
}
issueManagement {
system "github"
url "https://github.com/MC-U-Team/${config.maven.github_name}/issues"
url "https://github.com/MC-U-Team/${config.github.name}/issues"
}
licenses {
license {
name "Apache License 2.0"
url "https://github.com/MC-U-Team/${config.maven.github_name}/blob/${config.forge.mcversion}/LICENSE"
url "https://github.com/MC-U-Team/${config.github.name}/blob/${config.github.branch}/LICENSE"
distribution "repo"
}
}
Expand All @@ -246,4 +246,4 @@ task uploadBoth {
doLast {
println "Published both"
}
}
}
10 changes: 4 additions & 6 deletions build.properties
Expand Up @@ -2,7 +2,7 @@
forge.mcversion=1.14.4

#Mod Settings
mod.version=0.10.0
mod.version=0.10.1
mod.snapshot=true
mod.filename=useful_resources
mod.name=Useful Resources
Expand All @@ -11,13 +11,11 @@ mod.name=Useful Resources
curse.id=326809
curse.type=beta
curse.display=Useful-Resources
curse.changelog=https://github.com/MC-U-Team/Useful-Resources/blob/1.14.4/CHANGELOG.md

#Maven
maven.github_name=Useful-Resources
#Github
github.name=Useful-Resources
github.branch=1.14.4

#Dependencies
#UTeamCore
uteamcore.version=2.7.0.129
#Jei
jei.version=6.0.0.8

0 comments on commit 2eef60c

Please sign in to comment.