-
-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is not really a migration since gradle support is currently not working. We agreed to keep the templating and remove the endpoints. I also deleted some unused methods in project repository in the process
- Loading branch information
Showing
23 changed files
with
104 additions
and
552 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -141,7 +141,6 @@ jobs: | |
- consulapp | ||
- gatewayapp | ||
- mongodbapp | ||
- gradleapp | ||
- angularapp | ||
- reactapp | ||
- vueapp | ||
|
27 changes: 0 additions & 27 deletions
27
...a/tech/jhipster/lite/generator/buildtool/gradle/application/GradleApplicationService.java
This file was deleted.
Oops, something went wrong.
20 changes: 4 additions & 16 deletions
20
src/main/java/tech/jhipster/lite/generator/buildtool/gradle/domain/Gradle.java
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
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
37 changes: 37 additions & 0 deletions
37
src/main/java/tech/jhipster/lite/generator/buildtool/gradle/domain/GradleModuleFactory.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package tech.jhipster.lite.generator.buildtool.gradle.domain; | ||
|
||
import static tech.jhipster.lite.module.domain.JHipsterModule.*; | ||
|
||
import tech.jhipster.lite.error.domain.Assert; | ||
import tech.jhipster.lite.module.domain.JHipsterModule; | ||
import tech.jhipster.lite.module.domain.JHipsterSource; | ||
import tech.jhipster.lite.module.domain.properties.JHipsterModuleProperties; | ||
|
||
public class GradleModuleFactory { | ||
|
||
private static final JHipsterSource SOURCE = from("buildtool/gradle"); | ||
|
||
public JHipsterModule buildModule(JHipsterModuleProperties properties) { | ||
Assert.notNull("properties", properties); | ||
|
||
//@formatter:off | ||
return moduleBuilder(properties) | ||
.context() | ||
.put("dasherizedBaseName", properties.projectBaseName().kebabCase()) | ||
.and() | ||
.files() | ||
.batch(SOURCE, to(".")) | ||
.template("build.gradle.kts") | ||
.template("settings.gradle.kts") | ||
.and() | ||
.batch(SOURCE.append("gradle/wrapper"), to("gradle/wrapper")) | ||
.file("gradle-wrapper.properties") | ||
.file("gradle-wrapper.jar") | ||
.and() | ||
.addExecutable(SOURCE.file("gradlew"), to("gradlew")) | ||
.addExecutable(SOURCE.file("gradlew.bat"), to("gradlew.bat")) | ||
.and() | ||
.build(); | ||
//@formatter:on | ||
} | ||
} |
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
53 changes: 0 additions & 53 deletions
53
.../jhipster/lite/generator/buildtool/gradle/infrastructure/primary/rest/GradleResource.java
This file was deleted.
Oops, something went wrong.
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
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
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
2 changes: 1 addition & 1 deletion
2
src/main/resources/generator/buildtool/gradle/settings.gradle.kts.mustache
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
rootProject.name = "{{dasherizedBaseName}}{{^dasherizedBaseName}}jhipster{{/dasherizedBaseName}}" | ||
rootProject.name = "{{dasherizedBaseName}}" |
Oops, something went wrong.