From b9c1172e0bea37166aee54491892cc61a4abb88f Mon Sep 17 00:00:00 2001 From: Marc Hermans Date: Mon, 9 Jan 2023 07:48:53 +0100 Subject: Update to teamcity. --- .teamcity/pom.xml | 104 +++++++++++++++++++++++++++++++++++++++++++++++++ .teamcity/settings.kts | 69 ++++++++++++++++++++++++++++++++ build.gradle | 8 +++- 3 files changed, 180 insertions(+), 1 deletion(-) create mode 100644 .teamcity/pom.xml create mode 100644 .teamcity/settings.kts diff --git a/.teamcity/pom.xml b/.teamcity/pom.xml new file mode 100644 index 0000000..6cdf2ab --- /dev/null +++ b/.teamcity/pom.xml @@ -0,0 +1,104 @@ + + + 4.0.0 + MinecraftForge_minecraftforge_Artifactural Config DSL Script + MinecraftForge_minecraftforge_Artifactural + MinecraftForge_minecraftforge_Artifactural_dsl + 1.0-SNAPSHOT + + + org.jetbrains.teamcity + configs-dsl-kotlin-parent + 1.0-SNAPSHOT + + + + + jetbrains-all + https://download.jetbrains.com/teamcity-repository + + true + + + + teamcity-server + https://teamcity.minecraftforge.net/app/dsl-plugins-repository + + true + + + + + + + JetBrains + https://download.jetbrains.com/teamcity-repository + + + + + ${basedir} + + + kotlin-maven-plugin + org.jetbrains.kotlin + ${kotlin.version} + + + + + compile + process-sources + + compile + + + + test-compile + process-test-sources + + test-compile + + + + + + org.jetbrains.teamcity + teamcity-configs-maven-plugin + ${teamcity.dsl.version} + + kotlin + target/generated-configs + + + + + + + + org.jetbrains.teamcity + configs-dsl-kotlin + ${teamcity.dsl.version} + compile + + + org.jetbrains.teamcity + configs-dsl-kotlin-plugins + 1.0-SNAPSHOT + pom + compile + + + org.jetbrains.kotlin + kotlin-stdlib-jdk8 + ${kotlin.version} + compile + + + org.jetbrains.kotlin + kotlin-script-runtime + ${kotlin.version} + compile + + + \ No newline at end of file diff --git a/.teamcity/settings.kts b/.teamcity/settings.kts new file mode 100644 index 0000000..8b545a6 --- /dev/null +++ b/.teamcity/settings.kts @@ -0,0 +1,69 @@ +import jetbrains.buildServer.configs.kotlin.v2019_2.* +import jetbrains.buildServer.configs.kotlin.v2019_2.projectFeatures.githubIssues + +/* +The settings script is an entry point for defining a TeamCity +project hierarchy. The script should contain a single call to the +project() function with a Project instance or an init function as +an argument. + +VcsRoots, BuildTypes, Templates, and subprojects can be +registered inside the project using the vcsRoot(), buildType(), +template(), and subProject() methods respectively. + +To debug settings scripts in command-line, run the + + mvnDebug org.jetbrains.teamcity:teamcity-configs-maven-plugin:generate + +command and attach your debugger to the port 8000. + +To debug in IntelliJ Idea, open the 'Maven Projects' tool window (View +-> Tool Windows -> Maven Projects), find the generate task node +(Plugins -> teamcity-configs -> teamcity-configs:generate), the +'Debug' option is available in the context menu for the task. +*/ + +version = "2021.2" + +project { + + buildType(Build) + buildType(BuildSecondaryBranches) + buildType(PullRequests) + + params { + text("git_main_branch", "master", label = "Git Main Branch", description = "The git main or default branch to use in VCS operations.", display = ParameterDisplay.HIDDEN, allowEmpty = false) + text("github_repository_name", "Artifactural", label = "The github repository name. Used to connect to it in VCS Roots.", description = "This is the repository slug on github. So for example `Artifactural` or `MinecraftForge`. It is interpolated into the global VCS Roots.", display = ParameterDisplay.HIDDEN, allowEmpty = false) + text("env.PUBLISHED_JAVA_ARTIFACT_ID", "artifactural", label = "Published artifact id", description = "The maven coordinate artifact id that has been published by this build. Can not be empty.", allowEmpty = false) + text("env.PUBLISHED_JAVA_GROUP", "net.minecraftforge", label = "Published group", description = "The maven coordinate group that has been published by this build. Can not be empty.", allowEmpty = false) + } + + features { + githubIssues { + id = "Artifactural__IssueTracker" + displayName = "minecraftforge/Artifactural" + repositoryURL = "https://github.com/minecraftforge/Artifactural" + } + } +} + +object Build : BuildType({ + templates(AbsoluteId("MinecraftForge_SetupGradleUtilsCiEnvironmen"), AbsoluteId("MinecraftForge_BuildWithDiscordNotifications"), AbsoluteId("MinecraftForge_BuildMainBranches"), AbsoluteId("MinecraftForge_BuildUsingGradle"), AbsoluteId("MinecraftForge_PublishProjectUsingGradle"), AbsoluteId("MinecraftForge_TriggersStaticFilesWebpageGenerator")) + id("Artifactural__Build") + name = "Build" + description = "Builds and Publishes the main branches of the project." +}) + +object BuildSecondaryBranches : BuildType({ + templates(AbsoluteId("MinecraftForge_ExcludesBuildingDefaultBranch"), AbsoluteId("MinecraftForge_SetupGradleUtilsCiEnvironmen"), AbsoluteId("MinecraftForge_BuildWithDiscordNotifications"), AbsoluteId("MinecraftForge_BuildMainBranches"), AbsoluteId("MinecraftForge_BuildUsingGradle")) + id("Artifactural__BuildSecondaryBranches") + name = "Build - Secondary Branches" + description = "Builds and Publishes the secondary branches of the project." +}) + +object PullRequests : BuildType({ + templates(AbsoluteId("MinecraftForge_BuildPullRequests"), AbsoluteId("MinecraftForge_SetupGradleUtilsCiEnvironmen"), AbsoluteId("MinecraftForge_BuildWithDiscordNotifications"), AbsoluteId("MinecraftForge_BuildUsingGradle")) + id("Artifactural__PullRequests") + name = "Pull Requests" + description = "Builds pull requests for the project" +}) diff --git a/build.gradle b/build.gradle index 9d1bf68..38ae2c1 100644 --- a/build.gradle +++ b/build.gradle @@ -211,4 +211,10 @@ publishing { repositories { maven gradleutils.getPublishingForgeMaven() } -} \ No newline at end of file +} + +changelog { + fromCommit('eb824ff275544533d38fa184dfb0adef360a62b0') //There is no tag yet so the versions might be messed up. +} + + -- cgit From 9fb69c7205a43b632536956e5f7a0d6455fe685e Mon Sep 17 00:00:00 2001 From: Marc Hermans Date: Mon, 9 Jan 2023 07:48:53 +0100 Subject: Update to teamcity. --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 38ae2c1..3b956ca 100644 --- a/build.gradle +++ b/build.gradle @@ -214,7 +214,7 @@ publishing { } changelog { - fromCommit('eb824ff275544533d38fa184dfb0adef360a62b0') //There is no tag yet so the versions might be messed up. + fromTag('3.0') } -- cgit