Skip to content

Commit

Permalink
fix(generators): update gradle plugin for gradle validation (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
khalilou88 authored Jun 5, 2023
1 parent 79f9191 commit b908e93
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion docs/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
- [Executors](nx-boot-maven/3-executors)
- [Project graph](nx-boot-maven/4-dep-graph)
- [Upgrading](nx-boot-maven/5-upgrading)
- [**Gradle plugin**](io.github.jnxplus/plugin)
- [**Gradle plugin**](gradle-plugin)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# io.github.jnxplus
# io.github.khalilou88.jnxplus

This repository contains Gradle plugin for managing gradle projects inside a nx workspace. Plugin registers task `projectDependencyTask` that generate project dependencies in a json file.

Expand All @@ -17,15 +17,15 @@ Kotlin:
```bash
val jnxplusGradlePluginVersion: String by settings
plugins {
id("io.github.jnxplus") version jnxplusGradlePluginVersion
id("io.github.khalilou88.jnxplus") version jnxplusGradlePluginVersion
}
```

Groovy:

```bash
plugins {
id 'io.github.jnxplus' version "${jnxplusGradlePluginVersion}"
id 'io.github.khalilou88.jnxplus' version "${jnxplusGradlePluginVersion}"
}
```

Expand All @@ -35,15 +35,15 @@ Kotlin:

```bash
plugins {
id("io.github.jnxplus")
id("io.github.khalilou88.jnxplus")
}
```

Groovy:

```bash
plugins {
id "io.github.jnxplus"
id "io.github.khalilou88.jnxplus"
}
```

Expand Down
10 changes: 5 additions & 5 deletions packages/gradle-plugin/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# io.github.jnxplus
# io.github.khalilou88.jnxplus

This repository contains Gradle plugin for managing gradle projects inside a nx workspace. Plugin registers task `projectDependencyTask` that generate project dependencies in a json file.

Expand All @@ -17,15 +17,15 @@ Kotlin:
```bash
val jnxplusGradlePluginVersion: String by settings
plugins {
id("io.github.jnxplus") version jnxplusGradlePluginVersion
id("io.github.khalilou88.jnxplus") version jnxplusGradlePluginVersion
}
```

Groovy:

```bash
plugins {
id 'io.github.jnxplus' version "${jnxplusGradlePluginVersion}"
id 'io.github.khalilou88.jnxplus' version "${jnxplusGradlePluginVersion}"
}
```

Expand All @@ -35,15 +35,15 @@ Kotlin:

```bash
plugins {
id("io.github.jnxplus")
id("io.github.khalilou88.jnxplus")
}
```

Groovy:

```bash
plugins {
id "io.github.jnxplus"
id "io.github.khalilou88.jnxplus"
}
```

Expand Down
10 changes: 5 additions & 5 deletions packages/gradle-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ plugins {
id 'com.gradle.plugin-publish' version '1.2.0'
}

group = 'io.github.jnxplus'
group = 'io.github.khalilou88.jnxplus'
version = '0.1.4'

repositories {
Expand All @@ -33,15 +33,15 @@ dependencies {

gradlePlugin {
// Define the plugin
website = 'https://khalilou88.github.io/jnxplus/#/io.github.jnxplus/plugin'
vcsUrl = 'https://github.com/khalilou88/jnxplus/tree/main/packages/gradle-plugin'
website = 'https://khalilou88.github.io/jnxplus/#/gradle-plugin'
vcsUrl = 'https://github.com/khalilou88/jnxplus'
plugins {
jnxplusPlugin {
id = 'io.github.jnxplus'
id = 'io.github.khalilou88.jnxplus'
displayName = 'jnxplus gradle plugin'
description = 'jnxplus gradle plugin for depedency graph'
tags.set(['nx', 'jnxplus'])
implementationClass = 'io.github.jnxplus.GradlePlugin'
implementationClass = 'io.github.khalilou88.jnxplus.GradlePlugin'
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/*
* This Groovy source file was generated by the Gradle 'init' task.
*/
package io.github.jnxplus
package io.github.khalilou88.jnxplus

import org.gradle.testkit.runner.GradleRunner
import spock.lang.Specification
import spock.lang.TempDir

/**
* A simple functional test for the 'io.github.jnxplus.projects' plugin.*/
* A simple functional test for the 'io.github.khalilou88.jnxplus.projects' plugin.*/
class GradlePluginFunctionalTest extends Specification {
@TempDir
private File projectDir
Expand All @@ -26,7 +26,7 @@ class GradlePluginFunctionalTest extends Specification {
settingsFile << ""
buildFile << """
plugins {
id('io.github.jnxplus')
id('io.github.khalilou88.jnxplus')
}
"""

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This Groovy source file was generated by the Gradle 'init' task.
*/
package io.github.jnxplus
package io.github.khalilou88.jnxplus


import org.gradle.api.Plugin
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.jnxplus
package io.github.khalilou88.jnxplus

import groovy.json.JsonOutput
import org.gradle.api.DefaultTask
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This Groovy source file was generated by the Gradle 'init' task.
*/
package io.github.jnxplus
package io.github.khalilou88.jnxplus

import org.gradle.testfixtures.ProjectBuilder
import spock.lang.Specification
Expand All @@ -14,7 +14,7 @@ class GradlePluginTest extends Specification {
def project = ProjectBuilder.builder().build()

when:
project.plugins.apply("io.github.jnxplus")
project.plugins.apply("io.github.khalilou88.jnxplus")

then:
project.tasks.findByName("projectDependencyTask") != null
Expand Down
2 changes: 1 addition & 1 deletion packages/gradle/src/executors/set-version/executor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('regex work', () => {
id 'com.gradle.plugin-publish' version '1.2.0'
}
group = 'io.github.jnxplus'
group = 'io.github.khalilou88.jnxplus'
version = '0.0.1-SNAPSHOT'
repositories {
Expand Down
2 changes: 1 addition & 1 deletion packages/maven-wrapper/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>io.github.jnxplus</groupId>
<groupId>io.github.khalilou88.jnxplus</groupId>
<artifactId>maven-wrapper</artifactId>
<version>1.0-SNAPSHOT</version>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
plugins {
<% if(dsl === 'groovy') { -%>
id 'io.github.jnxplus'
id 'io.github.khalilou88.jnxplus'
<% } -%>
<% if(dsl === 'kotlin') { -%>
id("io.github.jnxplus")
id("io.github.khalilou88.jnxplus")
<% } -%>
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pluginManagement {
id 'io.spring.dependency-management' version "${dependencyManagementVersion}"
id 'org.jetbrains.kotlin.jvm' version "${kotlinJvmVersion}"
id 'org.jetbrains.kotlin.plugin.spring' version "${kotlinSpringVersion}"
id 'io.github.jnxplus' version "${jnxplusGradlePluginVersion}"
id 'io.github.khalilou88.jnxplus' version "${jnxplusGradlePluginVersion}"
}
<% if(generateRepositories) { -%>
repositories {
Expand All @@ -29,7 +29,7 @@ pluginManagement {
id("io.spring.dependency-management") version dependencyManagementVersion
id("org.jetbrains.kotlin.jvm") version kotlinJvmVersion
id("org.jetbrains.kotlin.plugin.spring") version kotlinSpringVersion
id("io.github.jnxplus") version jnxplusGradlePluginVersion
id("io.github.khalilou88.jnxplus") version jnxplusGradlePluginVersion
}
<% if(generateRepositories) { -%>
repositories {
Expand Down

0 comments on commit b908e93

Please sign in to comment.