diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index d00e8c2b..a598501f 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -50,11 +50,12 @@ jobs:
- uses: actions/setup-dotnet@v3.2.0
with:
dotnet-version: |
- 2.1.818
- 3.1.x
- 5.0.x
- 6.0.x
- 7.0.x
+ 2.1
+ 3.1
+ 5.0
+ 6.0
+ 7.0
+ 8.0
- name: Cache Tools
uses: actions/cache@v3
with:
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 4f42ff09..597e0ee8 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -36,9 +36,10 @@ jobs:
- uses: actions/setup-dotnet@v3.2.0
with:
dotnet-version: |
- 5.0.x
- 6.0.x
- 7.0.x
+ 5.0
+ 6.0
+ 7.0
+ 8.0
- name: Cache Tools
uses: actions/cache@v3
with:
diff --git a/demo/frosting/build/Build.csproj b/demo/frosting/build/Build.csproj
index f050ea73..95c10edc 100644
--- a/demo/frosting/build/Build.csproj
+++ b/demo/frosting/build/Build.csproj
@@ -1,15 +1,15 @@
Exe
- net6.0
+ net8.0
$(MSBuildProjectDirectory)
-
+
-
- ..\..\..\src\Cake.Gradle\bin\Release\net6.0\Cake.Gradle.dll
+
+ $(ProjectDir)../../../src/Cake.Gradle/bin/Release/net8.0/Cake.Gradle.dll
diff --git a/demo/script/.config/dotnet-tools.json b/demo/script/.config/dotnet-tools.json
index 31e896e9..da200cda 100644
--- a/demo/script/.config/dotnet-tools.json
+++ b/demo/script/.config/dotnet-tools.json
@@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"cake.tool": {
- "version": "2.0.0",
+ "version": "4.0.0",
"commands": [
"dotnet-cake"
]
diff --git a/demo/script/build.cake b/demo/script/build.cake
index 0021f284..0ced1c17 100644
--- a/demo/script/build.cake
+++ b/demo/script/build.cake
@@ -1,7 +1,7 @@
// build artifacts first by executing ./build.ps1 in root
- #r "../../src/Cake.Gradle/bin/Release/net6.0/Cake.Gradle.dll"
+ #r "../../src/Cake.Gradle/bin/Release/net8.0/Cake.Gradle.dll"
-// requires Java Runtime Environment
+// requires Java Runtime Environment
Task("Gradle-Example")
.Does(() =>
@@ -12,15 +12,15 @@ Task("Gradle-Example")
// Run 'gradle --version'
// run this, in example folder too. So the "test" does not break when gradle is not installed globally.
Gradle.FromPath("./example").WithArguments("--version").Run();
-
+
// Run 'gradle hello' in a specific folder
// Note: if you have a gradle wrapper setup in the specified path, this one will be used
Gradle.FromPath("./example").WithTask("hello").Run();
-
+
// Run 'gradle hello' in a specific folder with default log level
// Note: if no log level is set, it is derived from the Cake verbosity (which is set to 'verbose' in build.ps1)
- Gradle.FromPath("./example").WithTask("hello").WithLogLevel(GradleLogLevel.Default).Run();
-
+ Gradle.FromPath("./example").WithTask("hello").WithLogLevel(GradleLogLevel.Default).Run();
+
// Run 'gradle --offline --build-file build.gradle hello' in a specific folder
Gradle.FromPath("./example").WithTask("hello").WithArguments("--offline --build-file build.gradle").Run();
});
diff --git a/global.json b/global.json
new file mode 100644
index 00000000..501e79a8
--- /dev/null
+++ b/global.json
@@ -0,0 +1,6 @@
+{
+ "sdk": {
+ "version": "8.0.100",
+ "rollForward": "latestFeature"
+ }
+}
\ No newline at end of file
diff --git a/src/Cake.Gradle.Tests/Cake.Gradle.Tests.csproj b/src/Cake.Gradle.Tests/Cake.Gradle.Tests.csproj
index a3429d7d..7c145523 100644
--- a/src/Cake.Gradle.Tests/Cake.Gradle.Tests.csproj
+++ b/src/Cake.Gradle.Tests/Cake.Gradle.Tests.csproj
@@ -1,8 +1,13 @@
+
netcoreapp3.1
- net6.0;net7.0;
+ net6.0;net7.0;net8.0
$(NoWarn);CS1591;SA1600
false
@@ -10,8 +15,8 @@
-
-
+
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/src/Cake.Gradle/Cake.Gradle.csproj b/src/Cake.Gradle/Cake.Gradle.csproj
index 2fcedd2d..f87b82af 100644
--- a/src/Cake.Gradle/Cake.Gradle.csproj
+++ b/src/Cake.Gradle/Cake.Gradle.csproj
@@ -1,6 +1,6 @@
- net6.0;net7.0
+ net6.0;net7.0;net8.0
true
$(SolutionDir)/Cake.Gradle.ruleset
@@ -32,13 +32,13 @@
-
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive