Comments (10)
PRs welcome
from freebuilder.
Are you trying to maintain support for pre java 9?
from freebuilder.
I'm not sure of the Java landscape these days. What does Android compatibility entail?
from freebuilder.
I don't know what android's up to. Automatic module naming is backwards compatible for sure though.
from freebuilder.
I believe recent-er versions of gradle can generate the automatic module manifest (I need to do some research) are you amenable to upgrading if that's the path of least resistance?
from freebuilder.
Absolutely.
from freebuilder.
Honestly, I went to do this, this morning, but I can't get the project to build. I'm not sure why you've done some things... so I don't want to mess around with a project that doesn't build
Where:
Script '/home/xeno/IdeaProjects/FreeBuilder/gradle/java-compatibility.gradle' line: 34
* What went wrong:
A problem occurred evaluating root project 'FreeBuilder'.
> Could not get unknown property 'HOME' for root project 'FreeBuilder' of type org.gradle.api.Project.
to fix this you might want to upgrade to gradle 8 (it was introduced in 7, but I'm not sure which version), and use the Java Toolchain feature. I'm only guessing at what you're trying to do though.
to fix the actual issue I brought up here it should be as simple as
jar {
manifest {
attributes 'Automatic-Module-Name': 'org.inferred.freebuilder'
}
}
https://stackoverflow.com/a/53912585/206466
https://blog.joda.org/2017/05/java-se-9-jpms-automatic-modules.html
from freebuilder.
hacky workaround (mostly using it to decide if freebuilder works for me, if not... then I have to decide what I want to do about that)
plugins {
id("org.gradlex.extra-java-module-info").version("1.+")
}
extraJavaModuleInfo {
automaticModule("org.inferred:freebuilder", "org.inferred.freebuilder")
failOnMissingModuleInfo.set(false)
}
not sure if if this adds the manifest to the jar, simply gives it a name on the cli or what https://github.com/gradlex-org/extra-java-module-info
from freebuilder.
I can't get the project to build
That error's coming from these lines here:
FreeBuilder/gradle/java-compatibility.gradle
Lines 34 to 35 in 3a38f58
It's supposed to write out an error message, but apparently the $HOME
needs escaping in the string before it can do that. (It was supposed to be a literal dollar sign in the output.)
from freebuilder.
Yeah, I'm just thinking there might be a better way to do whatever you're trying to do than there was in 6. You should just be able to copy and paste those jar lines somewhere though and have add the manifest.MF when you build the jar. I haven't tested it though because... Oh because I didn't want to spend a ton of time making your build work. Especially with My IDE.
from freebuilder.
Related Issues (20)
- Unchecked warnings in code generated for GWT-serializable generic types
- Add support for singularizing plural method names HOT 2
- Evaluate optimizability of internal EnumSet HOT 1
- deserializing mongodb document HOT 1
- Specify property name in exception message on nested type build failure HOT 2
- Support remaining Guava collections HOT 4
- IgnoredByEquals doesn't work HOT 6
- Alternative name for build method HOT 9
- IntelliJ, Auto-Discover Processors from Maven HOT 1
- Nested buildable types should use the enclosing type's defaults
- jackson serializer error HOT 2
- Support derived fields HOT 4
- Enhancement: Add nested builder functions HOT 2
- mergeFrom should support partials
- Support for @JsonAlias
- Not able to build on jdk 20
- Custom getters inside builder HOT 5
- Java 21 throws warning with idiomatic Freebuilder usage HOT 5
- How can I install in vscode freebuilder ? 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 freebuilder.