Created
April 21, 2021 16:01
-
-
Save rjaduthie/3761e6f3847db9f8f772c9e16663aaa9 to your computer and use it in GitHub Desktop.
Minimum Example TC Kotlin Reflection Issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<project> | |
<modelVersion>4.0.0</modelVersion> | |
<name>Test Config DSL Script</name> | |
<groupId>Test</groupId> | |
<artifactId>Test_dsl</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<properties> | |
<kotlin.version>1.4.32</kotlin.version> | |
<teamcity.dsl.version>2020.1</teamcity.dsl.version> | |
</properties> | |
<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> | |
</repositories> | |
<pluginRepositories> | |
<pluginRepository> | |
<id>JetBrains</id> | |
<url>https://download.jetbrains.com/teamcity-repository</url> | |
</pluginRepository> | |
</pluginRepositories> | |
<build> | |
<plugins> | |
<plugin> | |
<artifactId>kotlin-maven-plugin</artifactId> | |
<groupId>org.jetbrains.kotlin</groupId> | |
<version>${kotlin.version}</version> | |
<configuration> | |
<jvmTarget>1.8</jvmTarget> | |
</configuration> | |
<executions> | |
<execution> | |
<id>compile</id> | |
<phase>compile</phase> | |
<goals> | |
<goal>compile</goal> | |
</goals> | |
</execution> | |
<execution> | |
<id>test-compile</id> | |
<phase>test-compile</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.kotlin</groupId> | |
<artifactId>kotlin-bom</artifactId> | |
<version>${kotlin.version}</version> | |
<type>pom</type> | |
<scope>compile</scope> | |
</dependency> | |
<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-reflect</artifactId> | |
<version>${kotlin.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.jetbrains.kotlin</groupId> | |
<artifactId>kotlin-script-runtime</artifactId> | |
<version>${kotlin.version}</version> | |
<scope>compile</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.jetbrains.kotlin</groupId> | |
<artifactId>kotlin-test</artifactId> | |
<version>${kotlin.version}</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import jetbrains.buildServer.configs.kotlin.v2019_2.copy | |
import jetbrains.buildServer.configs.kotlin.v2019_2.project | |
import jetbrains.buildServer.configs.kotlin.v2019_2.vcs.GitVcsRoot | |
import jetbrains.buildServer.configs.kotlin.v2019_2.version | |
version = "2020.1" | |
project { | |
val vcs: GitVcsRoot = GitVcsRoot() | |
val vcsCopy: GitVcsRoot = vcs.copy() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment