Skip to content

Commit 94b590e

Browse files
committed
TeamCity changeover part 2
Signed-off-by: cpw <cpw+github@weeksfamily.ca>
1 parent af6684f commit 94b590e

3 files changed

Lines changed: 166 additions & 1 deletion

File tree

.teamcity/pom.xml

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
<?xml version="1.0"?>
2+
<project>
3+
<modelVersion>4.0.0</modelVersion>
4+
<name>MinecraftForge_McModLauncher_securejarhandler Config DSL Script</name>
5+
<groupId>MinecraftForge_McModLauncher_securejarhandler</groupId>
6+
<artifactId>MinecraftForge_McModLauncher_securejarhandler_dsl</artifactId>
7+
<version>1.0-SNAPSHOT</version>
8+
9+
<parent>
10+
<groupId>org.jetbrains.teamcity</groupId>
11+
<artifactId>configs-dsl-kotlin-parent</artifactId>
12+
<version>1.0-SNAPSHOT</version>
13+
</parent>
14+
15+
<repositories>
16+
<repository>
17+
<id>jetbrains-all</id>
18+
<url>https://download.jetbrains.com/teamcity-repository</url>
19+
<snapshots>
20+
<enabled>true</enabled>
21+
</snapshots>
22+
</repository>
23+
<repository>
24+
<id>teamcity-server</id>
25+
<url>https://teamcity.MinecraftForge_McModLauncher.net/app/dsl-plugins-repository</url>
26+
<snapshots>
27+
<enabled>true</enabled>
28+
</snapshots>
29+
</repository>
30+
</repositories>
31+
32+
<pluginRepositories>
33+
<pluginRepository>
34+
<id>JetBrains</id>
35+
<url>https://download.jetbrains.com/teamcity-repository</url>
36+
</pluginRepository>
37+
</pluginRepositories>
38+
39+
<build>
40+
<sourceDirectory>${basedir}</sourceDirectory>
41+
<plugins>
42+
<plugin>
43+
<artifactId>kotlin-maven-plugin</artifactId>
44+
<groupId>org.jetbrains.kotlin</groupId>
45+
<version>${kotlin.version}</version>
46+
47+
<configuration/>
48+
<executions>
49+
<execution>
50+
<id>compile</id>
51+
<phase>process-sources</phase>
52+
<goals>
53+
<goal>compile</goal>
54+
</goals>
55+
</execution>
56+
<execution>
57+
<id>test-compile</id>
58+
<phase>process-test-sources</phase>
59+
<goals>
60+
<goal>test-compile</goal>
61+
</goals>
62+
</execution>
63+
</executions>
64+
</plugin>
65+
<plugin>
66+
<groupId>org.jetbrains.teamcity</groupId>
67+
<artifactId>teamcity-configs-maven-plugin</artifactId>
68+
<version>${teamcity.dsl.version}</version>
69+
<configuration>
70+
<format>kotlin</format>
71+
<dstDir>target/generated-configs</dstDir>
72+
</configuration>
73+
</plugin>
74+
</plugins>
75+
</build>
76+
77+
<dependencies>
78+
<dependency>
79+
<groupId>org.jetbrains.teamcity</groupId>
80+
<artifactId>configs-dsl-kotlin</artifactId>
81+
<version>${teamcity.dsl.version}</version>
82+
<scope>compile</scope>
83+
</dependency>
84+
<dependency>
85+
<groupId>org.jetbrains.teamcity</groupId>
86+
<artifactId>configs-dsl-kotlin-plugins</artifactId>
87+
<version>1.0-SNAPSHOT</version>
88+
<type>pom</type>
89+
<scope>compile</scope>
90+
</dependency>
91+
<dependency>
92+
<groupId>org.jetbrains.kotlin</groupId>
93+
<artifactId>kotlin-stdlib-jdk8</artifactId>
94+
<version>${kotlin.version}</version>
95+
<scope>compile</scope>
96+
</dependency>
97+
<dependency>
98+
<groupId>org.jetbrains.kotlin</groupId>
99+
<artifactId>kotlin-script-runtime</artifactId>
100+
<version>${kotlin.version}</version>
101+
<scope>compile</scope>
102+
</dependency>
103+
</dependencies>
104+
</project>

.teamcity/settings.kts

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
import jetbrains.buildServer.configs.kotlin.v2019_2.*
2+
import jetbrains.buildServer.configs.kotlin.v2019_2.projectFeatures.githubIssues
3+
4+
/*
5+
The settings script is an entry point for defining a TeamCity
6+
project hierarchy. The script should contain a single call to the
7+
project() function with a Project instance or an init function as
8+
an argument.
9+
10+
VcsRoots, BuildTypes, Templates, and subprojects can be
11+
registered inside the project using the vcsRoot(), buildType(),
12+
template(), and subProject() methods respectively.
13+
14+
To debug settings scripts in command-line, run the
15+
16+
mvnDebug org.jetbrains.teamcity:teamcity-configs-maven-plugin:generate
17+
18+
command and attach your debugger to the port 8000.
19+
20+
To debug in IntelliJ Idea, open the 'Maven Projects' tool window (View
21+
-> Tool Windows -> Maven Projects), find the generate task node
22+
(Plugins -> teamcity-configs -> teamcity-configs:generate), the
23+
'Debug' option is available in the context menu for the task.
24+
*/
25+
26+
version = "2021.2"
27+
28+
project {
29+
30+
buildType(PullRequests)
31+
buildType(Build)
32+
33+
params {
34+
text("git_main_branch", "main", label = "Git Main Branch", description = "The git main or default branch to use in VCS operations.", display = ParameterDisplay.HIDDEN, allowEmpty = false)
35+
text("github_repository_name", "securejarhandler", label = "The github repository name. Used to connect to it in VCS Roots.", description = "This is the repository slug on github. So for example `securejarhandler` or `MinecraftForge`. It is interpolated into the global VCS Roots.", display = ParameterDisplay.HIDDEN, allowEmpty = false)
36+
text("env.PUBLISHED_JAVA_ARTIFACT_ID", "securejarhandler", label = "Published artifact id", description = "The maven coordinate artifact id that has been published by this build. Can not be empty.", allowEmpty = false)
37+
text("env.PUBLISHED_JAVA_GROUP", "cpw.mods", label = "Published group", description = "The maven coordinate group that has been published by this build. Can not be empty.", allowEmpty = false)
38+
}
39+
40+
features {
41+
githubIssues {
42+
id = "securejarhandler__IssueTracker"
43+
displayName = "McModLauncher/securejarhandler"
44+
repositoryURL = "https://github.com/McModLauncher/securejarhandler"
45+
}
46+
}
47+
}
48+
49+
object Build : BuildType({
50+
templates(AbsoluteId("MinecraftForge_SetupGradleUtilsCiEnvironmen"), AbsoluteId("MinecraftForge_BuildWithDiscordNotifications"), AbsoluteId("MinecraftForge_BuildMainBranches"), AbsoluteId("MinecraftForge_BuildUsingGradle"), AbsoluteId("MinecraftForge_PublishProjectUsingGradle"), AbsoluteId("MinecraftForge_TriggersStaticFilesWebpageGenerator"))
51+
id("securejarhandler__Build")
52+
name = "Build"
53+
description = "Builds and Publishes the main branches of the project."
54+
})
55+
56+
object PullRequests : BuildType({
57+
templates(AbsoluteId("MinecraftForge_BuildPullRequests"), AbsoluteId("MinecraftForge_SetupGradleUtilsCiEnvironmen"), AbsoluteId("MinecraftForge_BuildWithDiscordNotifications"), AbsoluteId("MinecraftForge_BuildUsingGradle"))
58+
id("securejarhandler__PullRequests")
59+
name = "Pull Requests"
60+
description = "Builds pull requests for the project"
61+
})

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ dependencies {
5454
}
5555

5656
changelog {
57-
fromTag "2.0"
57+
fromTag "0.9"
5858
}
5959

6060
task sourcesJar(type: Jar) {

0 commit comments

Comments
 (0)