aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Hermans <marc.hermans@ldtteam.com>2023-01-09 07:48:53 +0100
committerMarc Hermans <marc.hermans@ldtteam.com>2023-01-09 07:48:53 +0100
commitb9c1172e0bea37166aee54491892cc61a4abb88f (patch)
treee6f7916c5cb30466dce77a73a3226bda9c05ee7e
parent4cfab97beb7402b1df3fa7524c1e5af2338a749d (diff)
downloadArtifactural-b9c1172e0bea37166aee54491892cc61a4abb88f.tar.gz
Artifactural-b9c1172e0bea37166aee54491892cc61a4abb88f.tar.bz2
Artifactural-b9c1172e0bea37166aee54491892cc61a4abb88f.zip
Update to teamcity.
-rw-r--r--.teamcity/pom.xml104
-rw-r--r--.teamcity/settings.kts69
-rw-r--r--build.gradle8
3 files changed, 180 insertions, 1 deletions
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 @@
+<?xml version="1.0"?>
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <name>MinecraftForge_minecraftforge_Artifactural Config DSL Script</name>
+ <groupId>MinecraftForge_minecraftforge_Artifactural</groupId>
+ <artifactId>MinecraftForge_minecraftforge_Artifactural_dsl</artifactId>
+ <version>1.0-SNAPSHOT</version>
+
+ <parent>
+ <groupId>org.jetbrains.teamcity</groupId>
+ <artifactId>configs-dsl-kotlin-parent</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <repositories>
+ <repository>
+ <id>jetbrains-all</id>
+ <url>https://download.jetbrains.com/teamcity-repository</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>teamcity-server</id>
+ <url>https://teamcity.minecraftforge.net/app/dsl-plugins-repository</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+
+ <pluginRepositories>
+ <pluginRepository>
+ <id>JetBrains</id>
+ <url>https://download.jetbrains.com/teamcity-repository</url>
+ </pluginRepository>
+ </pluginRepositories>
+
+ <build>
+ <sourceDirectory>${basedir}</sourceDirectory>
+ <plugins>
+ <plugin>
+ <artifactId>kotlin-maven-plugin</artifactId>
+ <groupId>org.jetbrains.kotlin</groupId>
+ <version>${kotlin.version}</version>
+
+ <configuration/>
+ <executions>
+ <execution>
+ <id>compile</id>
+ <phase>process-sources</phase>
+ <goals>
+ <goal>compile</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>test-compile</id>
+ <phase>process-test-sources</phase>
+ <goals>
+ <goal>test-compile</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.jetbrains.teamcity</groupId>
+ <artifactId>teamcity-configs-maven-plugin</artifactId>
+ <version>${teamcity.dsl.version}</version>
+ <configuration>
+ <format>kotlin</format>
+ <dstDir>target/generated-configs</dstDir>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jetbrains.teamcity</groupId>
+ <artifactId>configs-dsl-kotlin</artifactId>
+ <version>${teamcity.dsl.version}</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jetbrains.teamcity</groupId>
+ <artifactId>configs-dsl-kotlin-plugins</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <type>pom</type>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jetbrains.kotlin</groupId>
+ <artifactId>kotlin-stdlib-jdk8</artifactId>
+ <version>${kotlin.version}</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jetbrains.kotlin</groupId>
+ <artifactId>kotlin-script-runtime</artifactId>
+ <version>${kotlin.version}</version>
+ <scope>compile</scope>
+ </dependency>
+ </dependencies>
+</project> \ 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.
+}
+
+