Coder Social home page Coder Social logo

Comments (11)

pierrickrouxel avatar pierrickrouxel commented on September 25, 2024 1

Awesome, thank you for your quick answers.

from nxrocks.

tinesoft avatar tinesoft commented on September 25, 2024

Hi @pierrickrouxel

Thanks for using the plugin and for reporting this.

I will have a look shortly and keep you posted.

Cheers

from nxrocks.

pierrickrouxel avatar pierrickrouxel commented on September 25, 2024

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.

tinesoft avatar tinesoft commented on September 25, 2024

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.

tinesoft avatar tinesoft commented on September 25, 2024

Hi @pierrickrouxel

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.

tinesoft avatar tinesoft commented on September 25, 2024

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.

pierrickrouxel avatar pierrickrouxel commented on September 25, 2024

Hello, it works ! Thank you very much !

from nxrocks.

pierrickrouxel avatar pierrickrouxel commented on September 25, 2024

@tinesoft

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.

tinesoft avatar tinesoft commented on September 25, 2024

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.

pierrickrouxel avatar pierrickrouxel commented on September 25, 2024

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()
}

graph

from nxrocks.

tinesoft avatar tinesoft commented on September 25, 2024

Hi @pierrickrouxel

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.