Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with building the project as a java application: java.lang.String org.gradle.api.tasks.SourceSet.getCompileConfigurationName() #2

Open
Medkallel opened this issue Jun 14, 2022 · 5 comments

Comments

@Medkallel
Copy link

Hi I'm getting the following error when building the project as a java desktop app: 'java.lang.String org.gradle.api.tasks.SourceSet.getCompileConfigurationName()' in line 38

image

Could you please indicate what the problem is and also what jdk version should I use

@medavox
Copy link
Collaborator

medavox commented Jun 15, 2022

Hi, thanks for the bug report!

  • Which gradle task did you try to run when you got this error?

  • Which JDK version did you use? In case I have to state it as incompatible.

    • I'm using OpenJDK 11 and the IntelliJ IDEA bundled one (under /jbr) interchangeably with no problems.

@Medkallel
Copy link
Author

Hi again,
I was trying to run the ./gradlew shadowJar task
I used JDK 11 as well as 17, didn't work with either

@medavox
Copy link
Collaborator

medavox commented Jun 15, 2022

I've just updated gradle and the project's dependencies, in case that helps (a lot has changed on Kotlin Multiplatofmr in the last 2 years).

Can you please try again and see if that's fixed it?

Also, which OS are you using?

@medavox
Copy link
Collaborator

medavox commented Jun 15, 2022

actually it seems the shadowJar task is still broken. Please stand by

@medavox
Copy link
Collaborator

medavox commented Jun 15, 2022

Okay, I've migrated another dependency, and found that the JavaFX GUi was causing too many problems.

I've commented it out for now, with the intention being to replace it with Jetpack Compose at a later date. Sorry if this was what you were hoping to use; if you're determined to get the GUI to work as-is, I recommend you try compiling & running with JDK 8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants