Comments (11)
Awesome, thank you for your quick answers.
from nxrocks.
Thanks for using the plugin and for reporting this.
I will have a look shortly and keep you posted.
Cheers
from nxrocks.
Hi, thank you very much.
I'm currently on a Gradle monorepo hosting a Java / Typescript projects.
Your plugin sounds very good to our needs.
from nxrocks.
I'm glad to hear that 😊
I will do my best to fix the issue asap!
Don't hesitate to star ⭐ the project on Github, if you like it ^^
from nxrocks.
I identified and fixed the main issue you found above.
While fixing it, I discovered another issue when building the project graph for Gradle-based projects.
I'll include both fixes and release soon (hopefully tonight or tomorrow).
Stay tuned!
from nxrocks.
Hi.
Latest version of the plugin:
https://github.com/tinesoft/nxrocks/releases/tag/nx-spring-boot%2Fv10.0.2
should fix your issue. Can you try again and let me know?
from nxrocks.
Hello, it works ! Thank you very much !
from nxrocks.
While fixing it, I discovered another issue when building the project graph for Gradle-based projects.
Did you fix this issue? I run an integrated monorepo with a multi-module project. The links between modules aren't defined in the graph.
from nxrocks.
Hi,
Yes it was fixed during my testing, that why I took so long to release it.
Can you share the build.gradle
and settings.gradle
files in the parent module folder, along with the ones in the children modules please?
How did you define the dependencies between the modules?
from nxrocks.
You can find the config bellow and the graph in attachment.
/project/settings.gradle.kts
// For more information about Spring boot multi-modules projects, go to: https://spring.io/guides/gs/multi-module/
rootProject.name = "project"
include("dep1")
include("dep2")
/project/dep1/build.gradle.kts
plugins {
java
id("org.springframework.boot") version "3.2.5"
id("io.spring.dependency-management") version "1.1.4"
id("maven-publish")
}
group = "com.orisha.unity"
version = "0.0.1-SNAPSHOT"
java {
sourceCompatibility = JavaVersion.VERSION_21
}
repositories {
mavenCentral()
}
dependencies {
implementation(project(":dep2"))
implementation("org.springframework.boot:spring-boot-starter")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
tasks.withType<Test> {
useJUnitPlatform()
}
springBoot {
buildInfo()
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
artifact(tasks.getByName("bootJar"))
}
}
}
/project/dep2/build.gradle.kts
plugins {
java
}
group = "com.orisha.unity"
version = "0.0.1-SNAPSHOT"
java {
sourceCompatibility = JavaVersion.VERSION_21
}
repositories {
mavenCentral()
}
dependencies {
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
tasks.withType<Test> {
useJUnitPlatform()
}
from nxrocks.
Thanks for letting me know. There was indeed a slight change required for Gradle
project using Kotlin DSL
.
I will release it soonish
from nxrocks.
Related Issues (20)
- Linking is failing with nx-spring-boot link command [Bug] HOT 1
- [bug] Spring packages are not cached HOT 1
- [Feature] Update plugins to support Nx 17 HOT 14
- [Bug] Support for nx v17.x.x HOT 6
- Executors not working in a multi-module project with more than one level of folders HOT 12
- [Feature] : support java 21 HOT 5
- [Question] Maven dependency management for monorepo libs HOT 16
- [Feature] Run custom Maven commands by nx-spring-boot HOT 2
- [Bug] create-nx-spring-boot fails to run HOT 3
- [Bug] createNodesFor is not a function since @nxrocks/nx-spring-boot 9.3.0 HOT 8
- Cached projects are only restored the "target" folder but not the ~/.m2/repository folder HOT 10
- [Bug] Cannot run any nx command after creating micronaut project HOT 10
- [Bug] nx-flutter: inferred tasks aren't working HOT 26
- [Bug] NX command with Maven not executing for some reason, gradle seems to be working HOT 4
- [Bug] Maven wrapper not found in sub directory HOT 3
- [Bug] Project setup not working as expected HOT 12
- [Bug] Failed to process the project graph with "@nxrocks/nx-flutter". Source file "..." does not exist in the workspace. HOT 3
- [Feature] Flutter Pub Command HOT 7
- [Bug] Unsupported URL Type error when installing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nxrocks.