File tree Expand file tree Collapse file tree 5 files changed +10
-5
lines changed
src/main/kotlin/com/github/gradle/node Expand file tree Collapse file tree 5 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 6
6
strategy :
7
7
matrix :
8
8
config :
9
- - {os: ubuntu-latest, params: "'-PtestedGradleVersion=6.6|7.0|7.5 .1' pnpmTests" }
10
- - {os: ubuntu-latest, params: "'-PtestedGradleVersion=6.6|7.0|7.5 .1' build" }
9
+ - {os: ubuntu-latest, params: "'-PtestedGradleVersion=7.5.1|8.1 .1' pnpmTests" }
10
+ - {os: ubuntu-latest, params: "'-PtestedGradleVersion=7.5.1|8.1 .1' build" }
11
11
- {os: windows-latest, params: "build pnpmTests" }
12
12
- {os: macos-latest, params: "build pnpmTests" }
13
13
steps :
Original file line number Diff line number Diff line change 3
3
## Version 4.x * (unreleased)*
4
4
5
5
## Version 4.0.0 * (unreleased)*
6
- * Drop support for versions lower than Gradle 6.6
6
+ * Drop support for versions lower than Gradle 7.5.1
7
7
* Rename ` package.json ` extension to ` packageJson ` [ #232 ] ( https://github.com/node-gradle/gradle-node-plugin/issues/232 )
8
8
9
9
## Version 3.6.0 * (2023-04-20)*
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ with Gradle:
18
18
The plugin is published in the [ Gradle plugins portal] ( https://plugins.gradle.org/plugin/com.github.node-gradle.node )
19
19
with the ` com.github.node-gradle.node ` identifier.
20
20
21
- It supports Gradle 6.6 + and Node.js 10+, for 5.6.4 support use version 3.x
21
+ It supports Gradle 7.5.1 + and Node.js 10+, for Gradle 5.6.4 support use version 3.x
22
22
23
23
## Documentation
24
24
Original file line number Diff line number Diff line change @@ -21,12 +21,16 @@ import org.gradle.kotlin.dsl.create
21
21
import org.gradle.kotlin.dsl.named
22
22
import org.gradle.kotlin.dsl.of
23
23
import org.gradle.kotlin.dsl.register
24
+ import org.gradle.util.GradleVersion
24
25
import java.io.File
25
26
26
27
class NodePlugin : Plugin <Project > {
27
28
private lateinit var project: Project
28
29
29
30
override fun apply (project : Project ) {
31
+ if (GradleVersion .current() < MINIMAL_SUPPORTED_GRADLE_VERSION ) {
32
+ project.logger.error(" This version of the plugin requires $MINIMAL_SUPPORTED_GRADLE_VERSION or newer." )
33
+ }
30
34
this .project = project
31
35
val nodeExtension = NodeExtension .create(project)
32
36
project.extensions.create<PackageJsonExtension >(PackageJsonExtension .NAME , project)
@@ -150,6 +154,7 @@ class NodePlugin : Plugin<Project> {
150
154
}
151
155
152
156
companion object {
157
+ val MINIMAL_SUPPORTED_GRADLE_VERSION : GradleVersion = GradleVersion .version(" 7.5.1" )
153
158
const val NODE_GROUP = " Node"
154
159
const val NPM_GROUP = " npm"
155
160
const val PNPM_GROUP = " pnpm"
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import java.io.ByteArrayOutputStream
15
15
import java.io.File
16
16
import javax.inject.Inject
17
17
18
- @Deprecated(message = " Only 6.6 and newer is supported" )
18
+ @Deprecated(message = " Only 7.5.1 and newer is supported" )
19
19
interface ProjectApiHelper {
20
20
companion object {
21
21
@JvmStatic
You can’t perform that action at this time.
0 commit comments