Comments (3)
After testing it doesn't really matter. Ultimately because of the way this library is designed you have to use:
<annotationProcessorPaths>
....
</<annotationProcessorPaths>
instead of just
<dependencies>
<dependency> dom apt as optional and provided </dependency>
</dependencies>
Because org.seasar.doma.processor
can only be put on the classpath as that is all both Maven and Gradle support for APT (javac actually supports APT with modulepath) doma.core needs to as well. What happens though is doma.core
will be on the module path in a modular environment.
The reason annotationProcessorPaths
works is that Maven will put the doma.core
dependency into the classpath as well as the modulepath but I warn you this can have weird results.
In my library https://github.com/jstachio/jstachio you do not have to use annotationProcessorPaths
and let the compiler discover precisely because I make sure every dependencies is shaded in and never access the annotations directly.
I highly recommend you consider shading doma.core
into the doma.processor
to avoid issues you like this. Ideally the annotations should be in their own jar as well.
With all that being said you should still correct the module-info.java
in case someone does use javac --processor-module-path
from doma.
Thanks for your feedback.
I highly recommend you consider shading doma.core into the doma.processor to avoid issues you like this. Ideally the annotations should be in their own jar as well.
I will consider it in a future version.
from doma.
Shadow jar support was addressed in #992
from doma.
Related Issues (20)
- ( is missing when generating insert sql into auto_increment column only table HOT 2
- Some NativeSQL set queryTimeout to fetchSize HOT 1
- Criteria Apiについて、leftJoinの条件の書き方 HOT 2
- left joinについて HOT 6
- [Security] Workflow gradle-wrapper-validation.yml is using vulnerable action gradle/wrapper-validation-action
- Missing limit, offset words when select with top level `WITH` word HOT 4
- Criteria APIにて、タプルを使ったIN述語を3項目以上で使用する方法を教えてほしい HOT 1
- Criteria APIにて、タプルを使ったIN述語を3項目以上で使用する方法を教えてほしい HOT 3
- MySQLでSelectOptioinsでlimit 0を指定するとlimit 0, 18446744073709551615のSQLが作成される HOT 2
- Criteria APIでページングを実装するとき、絞り込み前の総件数を取得する方法はありますか? HOT 1
- OriginalState comparing BigDecimal by using equals HOT 1
- MySQLのSelectOptioins.countで`SELECT COUNT`に変える方法はありますか? HOT 2
- Javaを8から11に上げた時、Eclipse上での注釈処理が遅くなる HOT 13
- SelectOptionsでソートしたい HOT 4
- 2.53.3以降でDomainConverterにenumを指定するとコンパイルエラーが発生する HOT 4
- Prevent prepareIdValue if ignoreGeneratedKeys is true HOT 4
- DOMA4084 error occurs when including the Embeddable class HOT 5
- MSSQL: TOP keyword is appended in wrong place when select with DISTINCT HOT 1
- Case and Width Insensitive Matching for SQL Queries HOT 6
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 doma.