Commit Graph

73 Commits

Author SHA1 Message Date
Lukas Eder
359ef49ad6 [jOOQ/jOOQ#14110] License header should use HTTPS rather than HTTP 2022-10-19 10:43:58 +02:00
Lukas Eder
78792b0659 [jOOQ/jOOQ#10677¨Add <onUnused/> to code generation configuration to specify behaviour when encountering unused objects 2022-05-11 16:05:07 +02:00
Lukas Eder
918f91b028 [jOOQ/jOOQ#11196] Drop support for Java 6 and 7
Runtime library - language usage

- Removed [java-8] tags
- Removed F functional interfaces
- Removed Meta.Predicate functional interfaces
- Converted anonymous classes to lambdas
- Removed some explicit final keywords where effectively final works
- Removed Java 6 Jenkinsfile
- try-with-resources
- Merged some catch blocks
- Get rid of type witnesses where possible

Runtime library - JDK API usage

- Prefer Collection.sort() over Collections.sort()
- Use Map.computeIfAbsent for Map<K, List<V>> lazy initialisation
- Replace Iterator::remove calls by Collection::removeIf
- Use Map::computeIfAbsent for Map<K, List<V>> lazy initialisation
- Replace Iterator::remove calls by Collection::removeIf
- Use Comparator::comparing and Comparator::thenComparing
- Use Stream API where not performance critical
- Replaced Map::entrySet iterations by Map::forEach
- Use ResultQuery::collect
- Map::putIfAbsent

Code generation

- Generate lambda for LazySchema's LazySupplier

Unrelated

- Applied a few IntelliJ inspections
- Remove unnecessary explicit array creation
2021-01-08 12:35:47 +01:00
Lukas Eder
cff813a73e [jOOQ/jOOQ#9727] Add configuration/basedir to resolve relative paths in
code generator
2020-01-14 15:41:37 +01:00
Lukas Eder
0f5b8799b9 [jOOQ/jOOQ#9048] Delete module-info.java.invalid files 2019-08-16 14:02:45 +02:00
Lukas Eder
854375dbcf [jOOQ/jOOQ#7789] Revert change
The jOOQ 3.12 Open Source Edition will continue to support Java 8. The only things we gain from the JDK 11 dependency is:

- Updated logic for reflection when mapping into proxied default methods (that stuff has changed completely in JDK 9). This is a regression, which we can live with. The workaround is to write a custom
- Explicit dependency on the JDK 9  API, for which we provide a Java 8 compatible alternative via reactive streams anyway.
- JDBC 4.3 compatibility (mostly sharding). We currently don't use that yet.

We're not even using  internally, outside of a few integration tests. So, we'll postpone the JDK 11 *requirement* (while supporting it nonetheless) to a later release, e.g. 3.13. We'll observe market share shifts. Currently Java 11's market share is a bit of a disappointment, so making it a requirement might be premature.
2019-07-26 15:18:18 +02:00
Knut Wannheden
8b04f08e15 [jOOQ/jOOQ#8919] Implement formatting in MiniJAXB
The formatting logic is encapsulated by the new internal `XMLBuilder`
class which also required a new internal interface `XMLAppendable` which
is implemented by all XJC generated classes.

The XJC plugin was modified accordingly and all code was regenerated.

Also note that the `MiniJAXB` class was moved to package
`org.jooq.util.jaxb.tools`.
2019-07-10 11:26:58 +02:00
Knut Wannheden
df2ec439bc [#6971] Add <onError/> to generator's <configuration/>
Using the new <onError/> (which accepts the values FAIL (default), LOG,
and SILENT) the generator's behavior on an encountered exceptions can be
controlled.
2019-04-10 12:20:17 +02:00
lukaseder
2785bc84ae [#8491] Remove unnecessary marker tokens in source code 2019-04-05 11:52:34 +02:00
lukaseder
910c1c5386 [#8086] Avoid edge cases with concatenation of File.separator 2018-12-17 10:37:48 +01:00
lukaseder
f24e629155 [#8086] Resolve relative paths in target directory in Maven plugin 2018-12-14 16:24:26 +01:00
lukaseder
fd40b5a90c [#6548] Support multiple external configuration files through <configurationFiles/> 2018-12-12 16:41:57 +01:00
lukaseder
881bd76669 [#7630] Close the Maven Plugin's URLClassLoader after code generation 2018-07-02 08:54:34 +02:00
Sergey Tselovalnikov
d1c6163cb6
close the plugin classloader after finishing the job 2018-07-02 15:44:42 +10:00
lukaseder
d032831897 Remove unnecessary SuppressWarnings annotation 2018-06-21 12:14:56 +02:00
lukaseder
b1a184a4c3 Release 3.11.1 2018-06-21 12:14:34 +02:00
lukaseder
3ed2fa8e48 [#6612] Cannot make maven plugin a module yet 2018-06-15 16:48:26 +02:00
lukaseder
b20d9b4906 [#6612] Cannot make maven plugin a module yet 2018-06-15 16:28:49 +02:00
lukaseder
98b8130f84 [#6612] Modularise jOOQ and cross-release JDK 8 and 9 builds 2018-06-12 14:26:32 +02:00
lukaseder
9a357cd4f0 [#7419] Remove leftovers from renaming 2018-04-18 16:29:16 +02:00
lukaseder
c77fdd3c85 [#7419] Rename jooq-meta and jooq-codegen packages to avoid conflicts in JPMS 2018-04-16 11:35:01 +02:00
lukaseder
d0acc17226 [#6879] Add javax.xml.bind:jaxb-api dependency and avoid using the implementation 2018-02-20 15:17:26 +01:00
lukaseder
eb827e8b9a [#6997] [#7011] Support system properties in Maven code generation 2018-01-09 10:38:17 +01:00
lukaseder
05d19194d7 [#6554] Mark Maven plugin as @ThreadSafe 2017-12-18 15:08:40 +01:00
lukaseder
b2f9a4e5ad [#6873] Line numbers not aligned correctly between OSS and Pro edition 2017-11-29 10:02:42 +01:00
lukaseder
fcdb5f23a2 [#5881] NullPointerException when running Maven code generator plugin without <target/> specification 2017-02-17 09:45:38 +01:00
lukaseder
1ed96d2f18 [#5754] Remove copyright (and dates) from file headers 2017-01-02 17:14:26 +01:00
lukaseder
b641dde50f [#5754] Remove copyright (and dates) from file headers 2017-01-02 17:05:35 +01:00
lukaseder
cc86c920d4 [#5616] Added hint for m2e to behave 2016-10-31 14:48:30 +01:00
lukaseder
742b2b129d [#5584] Fix all file headers to be regular comments, not Javadoc 2016-10-07 15:51:44 +02:00
lukaseder
227c0c0777 [#5477] Proper pre-Java 7 resource handling 2016-08-05 13:59:25 +02:00
lukaseder
6d263845c9 [#5477] Add <configurationFile> element to Maven code generation plugin, for external configuration 2016-08-05 13:56:04 +02:00
lukaseder
a3ac792176 [#5286] Add more meaningful error handling when Maven code generator is not configured correctly 2016-05-21 18:01:27 +02:00
lukaseder
8e8a7a9645 [#3761] Add code generator configuration to specify a log level threshold 2016-04-18 15:07:54 +02:00
lukaseder
11115c6741 [#4889] Update copyright to 2016 2016-01-04 20:59:08 +01:00
Vladimir Kulev
d011e6ba90 Add Maven plugin skip property 2015-08-28 16:36:46 +03:00
lukaseder
246a7261ed [#4349] The trial / pro license is accidentally delivered with the Open Source Edition 2015-06-03 11:00:55 +02:00
Lukas Eder
63c8c48a80 [#4122] Log code generation configuration XML only in DEBUG level 2015-03-04 14:54:41 +01:00
lukaseder
dd8d3c76f3 Updated copyright to 2015 2015-01-09 08:57:16 +01:00
Lukas Eder
8f72523997 Updated copyright to 2015 2015-01-07 17:57:59 +01:00
Lukas Eder
6e963d21ff [#3408] Remove the default log4j.xml configuration file from the maven plugin again 2014-07-16 15:57:19 +02:00
Lukas Eder
82117d0e99 [#2886] jooq-codegen-maven should look into project dependencies for jdbc driver 2014-06-24 15:02:47 +02:00
Lukas Eder
32f26f5a90 [#3275] Use maven-plugin-annotations in jOOQ-codegen-maven instead of Javadoc tags 2014-05-27 09:42:07 +02:00
Lukas Eder
70956b7f71 [#3194] Avoid using deprecated Maven mojo descriptor @parameter expression="${property}" 2014-04-16 12:49:44 +02:00
Lukas Eder
c6730094b6 Whitespace changes 2014-02-03 17:59:38 +01:00
Lukas Eder
d10a27ed3c Updated copyright information 2014-02-03 12:22:20 +01:00
Lukas Eder
c2e2730583 Line separators again... 2013-12-31 14:04:09 +01:00
Lukas Eder
6fb0f161c6 [#2887] jooq-codegen-maven should use a target directory relative to the module 2013-12-18 10:04:24 +01:00
Lukas Eder
5e7f157f52 Converted all \r\n to \n 2013-10-10 10:13:22 +02:00
Lukas Eder
f8dd234cb7 OSS / Commercial dual-licensing: Mask out commercial code sections from publicly available GitHub repository. 2013-10-07 14:52:51 +02:00