Skip to content

Commit 086395c

Browse files
authored
Merge pull request #13 from postsharp/topic/docfx-update
Topic/docfx update
2 parents 78273f9 + 16d3e2c commit 086395c

40 files changed

+348
-348
lines changed

.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>PostSharp_PostSharpDocumentation Config DSL Script</name>
5+
<groupId>PostSharp_PostSharpDocumentation</groupId>
6+
<artifactId>PostSharp_PostSharpDocumentation_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://postsharp.teamcity.com/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-latest</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-latest</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: 44 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
1-
// This file is automatically generated when you do `Build.ps1 prepare`.
2-
3-
import jetbrains.buildServer.configs.kotlin.v2019_2.*
1+
// This file is automatically generated by `Build.ps1 generate-scripts`.
42

53
// Both Swabra and swabra need to be imported
6-
import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.sshAgent
7-
import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.Swabra
8-
import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.swabra
9-
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.*
10-
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.powerShell
11-
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.*
4+
import jetbrains.buildServer.configs.kotlin.*
5+
import jetbrains.buildServer.configs.kotlin.buildFeatures.sshAgent
6+
import jetbrains.buildServer.configs.kotlin.buildFeatures.Swabra
7+
import jetbrains.buildServer.configs.kotlin.buildFeatures.swabra
8+
import jetbrains.buildServer.configs.kotlin.buildSteps.powerShell
9+
import jetbrains.buildServer.configs.kotlin.failureConditions.*
10+
import jetbrains.buildServer.configs.kotlin.triggers.*
1211

13-
version = "2021.2"
12+
version = "2024.03"
1413

1514
project {
1615

17-
buildType(DebugBuild)
18-
buildType(ReleaseBuild)
19-
buildType(PublicBuild)
20-
buildType(PublicDeployment)
21-
buildType(PublicUpdateSearch)
22-
buildTypesOrder = arrayListOf(DebugBuild,ReleaseBuild,PublicBuild,PublicDeployment,PublicUpdateSearch)
16+
buildType(DebugBuild)
17+
buildType(ReleaseBuild)
18+
buildType(PublicBuild)
19+
buildType(PublicDeployment)
20+
buildType(PublicUpdateSearch)
21+
22+
buildTypesOrder = arrayListOf(DebugBuild,ReleaseBuild,PublicBuild,PublicDeployment,PublicUpdateSearch)
23+
2324
}
2425

2526
object DebugBuild : BuildType({
2627

2728
name = "Build [Debug]"
2829

29-
artifactRules = "+:artifacts/publish/public/**/*=>artifacts/publish/public\n+:artifacts/publish/private/**/*=>artifacts/publish/private\n+:artifacts/testResults/**/*=>artifacts/testResults\n+:artifacts/logs/**/*=>logs\n+:%system.teamcity.build.tempDir%/Metalama/CompileTimeTroubleshooting/**/*=>logs\n+:%system.teamcity.build.tempDir%/Metalama/CrashReports/**/*=>logs\n+:%system.teamcity.build.tempDir%/Metalama/ExtractExceptions/**/*=>logs\n+:%system.teamcity.build.tempDir%/Metalama/Logs/**/*=>logs"
30+
artifactRules = "+:artifacts/publish/public/**/*=>artifacts/publish/public\n+:artifacts/publish/private/**/*=>artifacts/publish/private\n+:artifacts/testResults/**/*=>artifacts/testResults\n"
3031

3132
params {
3233
text("BuildArguments", "", label = "Build Arguments", description = "Arguments to append to the 'Build' build step.", allowEmpty = true)
@@ -53,6 +54,14 @@ object DebugBuild : BuildType({
5354
noProfile = false
5455
param("jetbrains_powershell_scriptArguments", "test --configuration Debug --buildNumber %build.number% --buildType %system.teamcity.buildType.id% %BuildArguments%")
5556
}
57+
powerShell {
58+
name = "Kill background processes before next build"
59+
scriptMode = file {
60+
path = "Build.ps1"
61+
}
62+
noProfile = false
63+
param("jetbrains_powershell_scriptArguments", "tools kill")
64+
}
5665
}
5766

5867
failureConditions {
@@ -99,7 +108,7 @@ object ReleaseBuild : BuildType({
99108

100109
name = "Build [Release]"
101110

102-
artifactRules = "+:artifacts/publish/public/**/*=>artifacts/publish/public\n+:artifacts/publish/private/**/*=>artifacts/publish/private\n+:artifacts/testResults/**/*=>artifacts/testResults\n+:artifacts/logs/**/*=>logs\n+:%system.teamcity.build.tempDir%/Metalama/CompileTimeTroubleshooting/**/*=>logs\n+:%system.teamcity.build.tempDir%/Metalama/CrashReports/**/*=>logs\n+:%system.teamcity.build.tempDir%/Metalama/ExtractExceptions/**/*=>logs\n+:%system.teamcity.build.tempDir%/Metalama/Logs/**/*=>logs"
111+
artifactRules = "+:artifacts/publish/public/**/*=>artifacts/publish/public\n+:artifacts/publish/private/**/*=>artifacts/publish/private\n+:artifacts/testResults/**/*=>artifacts/testResults\n"
103112

104113
params {
105114
text("BuildArguments", "", label = "Build Arguments", description = "Arguments to append to the 'Build' build step.", allowEmpty = true)
@@ -126,6 +135,14 @@ object ReleaseBuild : BuildType({
126135
noProfile = false
127136
param("jetbrains_powershell_scriptArguments", "test --configuration Release --buildNumber %build.number% --buildType %system.teamcity.buildType.id% %BuildArguments%")
128137
}
138+
powerShell {
139+
name = "Kill background processes before next build"
140+
scriptMode = file {
141+
path = "Build.ps1"
142+
}
143+
noProfile = false
144+
param("jetbrains_powershell_scriptArguments", "tools kill")
145+
}
129146
}
130147

131148
failureConditions {
@@ -172,7 +189,7 @@ object PublicBuild : BuildType({
172189

173190
name = "Build [Public]"
174191

175-
artifactRules = "+:artifacts/publish/public/**/*=>artifacts/publish/public\n+:artifacts/publish/private/**/*=>artifacts/publish/private\n+:artifacts/testResults/**/*=>artifacts/testResults\n+:artifacts/logs/**/*=>logs\n+:%system.teamcity.build.tempDir%/Metalama/CompileTimeTroubleshooting/**/*=>logs\n+:%system.teamcity.build.tempDir%/Metalama/CrashReports/**/*=>logs\n+:%system.teamcity.build.tempDir%/Metalama/ExtractExceptions/**/*=>logs\n+:%system.teamcity.build.tempDir%/Metalama/Logs/**/*=>logs"
192+
artifactRules = "+:artifacts/publish/public/**/*=>artifacts/publish/public\n+:artifacts/publish/private/**/*=>artifacts/publish/private\n+:artifacts/testResults/**/*=>artifacts/testResults\n"
176193

177194
params {
178195
text("BuildArguments", "", label = "Build Arguments", description = "Arguments to append to the 'Build' build step.", allowEmpty = true)
@@ -199,6 +216,14 @@ object PublicBuild : BuildType({
199216
noProfile = false
200217
param("jetbrains_powershell_scriptArguments", "test --configuration Public --buildNumber %build.number% --buildType %system.teamcity.buildType.id% %BuildArguments%")
201218
}
219+
powerShell {
220+
name = "Kill background processes before next build"
221+
scriptMode = file {
222+
path = "Build.ps1"
223+
}
224+
noProfile = false
225+
param("jetbrains_powershell_scriptArguments", "tools kill")
226+
}
202227
}
203228

204229
failureConditions {

Directory.Packages.props

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project>
3+
<PropertyGroup>
4+
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
5+
</PropertyGroup>
6+
<!-- Set versions of dependencies that need special treatment or consist of multiple packages of the same version. -->
7+
<PropertyGroup>
8+
<PostSharpEngineeringVersion Condition="'$(PostSharpEngineeringVersion)'==''">2023.2.122</PostSharpEngineeringVersion>
9+
</PropertyGroup>
10+
<ItemGroup>
11+
<PackageVersion Include="PostSharp.Engineering.BuildTools" Version="$(PostSharpEngineeringVersion)" />
12+
<PackageVersion Include="PostSharp.Engineering.DocFx" Version="$(PostSharpEngineeringVersion)" />
13+
<PackageVersion Include="Docfx.App" Version="2.77.0" />
14+
<PackageVersion Include="JetBrains.Annotations" Version="2024.2.0" />
15+
<PackageVersion Include="PostSharp.Compiler.Engine" Version="$(PostSharpPackageVersion)" />
16+
<PackageVersion Include="PostSharp.Redist" Version="$(PostSharpPackageVersion)" />
17+
<PackageVersion Include="PostSharp.Patterns.Aggregation.Redist" Version="$(PostSharpPackageVersion)" />
18+
<PackageVersion Include="PostSharp.Patterns.Caching.Redist" Version="$(PostSharpPackageVersion)" />
19+
<PackageVersion Include="PostSharp.Patterns.Caching.Azure" Version="$(PostSharpPackageVersion)" />
20+
<PackageVersion Include="PostSharp.Patterns.Caching.IMemoryCache" Version="$(PostSharpPackageVersion)" />
21+
<PackageVersion Include="PostSharp.Patterns.Caching.Redis" Version="$(PostSharpPackageVersion)" />
22+
<PackageVersion Include="PostSharp.Patterns.Common.Redist" Version="$(PostSharpPackageVersion)" />
23+
<PackageVersion Include="PostSharp.Patterns.Diagnostics.Redist" Version="$(PostSharpPackageVersion)" />
24+
<PackageVersion Include="PostSharp.Patterns.Diagnostics.ApplicationInsights" Version="$(PostSharpPackageVersion)" />
25+
<PackageVersion Include="PostSharp.Patterns.Diagnostics.AspNetCore" Version="$(PostSharpPackageVersion)" />
26+
<PackageVersion Include="PostSharp.Patterns.Diagnostics.AspNetFramework" Version="$(PostSharpPackageVersion)" />
27+
<PackageVersion Include="PostSharp.Patterns.Diagnostics.CommonLogging" Version="$(PostSharpPackageVersion)" />
28+
<PackageVersion Include="PostSharp.Patterns.Diagnostics.DiagnosticSource" Version="$(PostSharpPackageVersion)" />
29+
<PackageVersion Include="PostSharp.Patterns.Diagnostics.HttpClient" Version="$(PostSharpPackageVersion)" />
30+
<PackageVersion Include="PostSharp.Patterns.Diagnostics.Configuration" Version="$(PostSharpPackageVersion)" />
31+
<PackageVersion Include="PostSharp.Patterns.Diagnostics.Log4Net" Version="$(PostSharpPackageVersion)" />
32+
<PackageVersion Include="PostSharp.Patterns.Diagnostics.Microsoft" Version="$(PostSharpPackageVersion)" />
33+
<PackageVersion Include="PostSharp.Patterns.Diagnostics.NLog" Version="$(PostSharpPackageVersion)" />
34+
<PackageVersion Include="PostSharp.Patterns.Diagnostics.Serilog" Version="$(PostSharpPackageVersion)" />
35+
<PackageVersion Include="PostSharp.Patterns.Diagnostics.Tracing" Version="$(PostSharpPackageVersion)" />
36+
<PackageVersion Include="PostSharp.Patterns.Model.Redist" Version="$(PostSharpPackageVersion)" />
37+
<PackageVersion Include="PostSharp.Patterns.Threading.Redist" Version="$(PostSharpPackageVersion)" />
38+
<PackageVersion Include="PostSharp.Patterns.Xaml.Redist" Version="$(PostSharpPackageVersion)" />
39+
<PackageVersion Include="Spectre.Console.Cli" Version="0.49.1" />
40+
</ItemGroup>
41+
</Project>

code/.idea/.idea.PostSharp.Documentation.Prerequisites/.idea/.gitignore

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

code/.idea/.idea.PostSharp.Documentation.Prerequisites/.idea/.name

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

code/.idea/.idea.PostSharp.Documentation.Prerequisites/.idea/encodings.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

code/.idea/.idea.PostSharp.Documentation.Prerequisites/.idea/indexLayout.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

code/.idea/.idea.PostSharp.Documentation.Prerequisites/.idea/misc.xml

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

code/.idea/.idea.PostSharp.Documentation.Prerequisites/.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)