Commit Graph

33 Commits

Author SHA1 Message Date
Lukas Eder
118cce19f2 [jOOQ/jOOQ#16316] Revert [jOOQ/jOOQ#16275] 2024-02-21 11:13:59 +01:00
Lukas Eder
a0b37495f8 [jOOQ/jOOQ#16275] Remove unnecessary up-to-date prevention in jOOQ-codegen-gradle 2024-02-15 08:32:14 +01:00
Lukas Eder
f57f1e494d [jOOQ/jOOQ#16133] jOOQ-codegen-gradle doesn't consider basedir property for its OutputDirectory 2024-01-23 09:29:32 +01:00
Lukas Eder
0db655820f [jOOQ/jOOQ#16113] jOOQ-codegen-gradle fails with UnknownDomainObjectException when java plugin isn't applied first 2024-01-22 08:54:42 +01:00
Lukas Eder
4516607284 [jOOQ/jOOQ#16083] jOOQ-gradle-plugin multi execution configuration shouldn't require an explicit default configuration
This includes:

- [jOOQ/jOOQ#16084] Wrong order of MiniJAXB.append() calls in jOOQ-codegen-gradle
2024-01-16 10:41:57 +01:00
Lukas Eder
2a8016e644 [jOOQ/jOOQ#16075] Remove unnecessary runtimeClasspath dependency of the jOOQ-codegen-gradle plugin 2024-01-15 10:47:24 +01:00
Lukas Eder
303cfefa99 [jOOQ/jOOQ#15966] [jOOQ/jOOQ#15974] Copy default configuration
MiniJAXB doesn't deep clone the appended objects, so we end up using shared mutable state (see [jOOQ/jOOQ#16056]). This must be avoided, otherwise, each execution updates the common shared default configuration, which is certainly not what we want.
2024-01-11 09:35:34 +01:00
Lukas Eder
ab8b9dff1e [jOOQ/jOOQ#15966] [jOOQ/jOOQ#15974] Another iteration
Correct order of registering tasks and configuring them. We mustn't rely on any implicit ordering of the NamedDomainObjectContainer as that might be an implementation detail subject to change at any time.
2024-01-11 09:03:39 +01:00
Lukas Eder
9d8d793c97 [jOOQ/jOOQ#15966] [jOOQ/jOOQ#15974] Another iteration
- Remove jooqCodegenAll again (I managed!)
- Add tests for single-execution configurations
- Nest test projects into a single project
2024-01-10 17:00:24 +01:00
Lukas Eder
729acdf795 [jOOQ/jOOQ#15966] Remove mandatory dependency from compileJava to
jOOQ-codegen-gradle tasks

This includes:

- [jOOQ/jOOQ#15974] Cannot look up tasks.named(jooqCodegen) from
gradle scripts
- [jOOQ/jOOQ#16003] Misleading XSD warnings logged when working with
MiniJAXB
2024-01-05 15:16:49 +01:00
Lukas Eder
0fdd1e1f6f [jOOQ/jOOQ#15944] jOOQ-codegen-gradle should resolve relative
directories with respect to the gradle project, not the running process
2023-12-18 10:53:30 +01:00
Lukas Eder
070d47a161 Release 3.20.0-SNAPSHOT 2023-12-15 17:16:27 +01:00
Lukas Eder
05f24d79e3 Release 3.19.1-SNAPSHOT 2023-12-15 17:08:05 +01:00
Lukas Eder
04dbbf4639 Release 3.19.0 2023-12-15 14:05:22 +01:00
Lukas Eder
139e1afe84 [jOOQ/jOOQ#12985] Replace Closure<?> usage by ObjectFactory usage
As recommended here:
https://github.com/jOOQ/jOOQ/issues/12985#issuecomment-1853325931 if we
pass around an ObjectFactory instance from Gradle, then all the meta
data can be made available to Gradle / IntelliJ for both kotlin and
groovy builds.
2023-12-13 11:23:24 +01:00
Lukas Eder
50290b4c69 [jOOQ/jOOQ#12985] Remove the jooq-meta-kotlin dependency again 2023-12-08 16:32:25 +01:00
Lukas Eder
d40390cf69 [jOOQ/jOOQ#12985] Remove the jooq-meta-kotlin dependency again
It's no longer needed, now that the jOOQ-meta extensions classes provide methods accepting Action
2023-12-08 15:32:18 +01:00
Lukas Eder
f2a4c7667c [jOOQ/jOOQ#12985] Add comment explaining rationale for explicit Closure
We still need explicit groovy Closure support in our DSL API for gradle because of an interesting decision in ClosureBackedAction to prefer Closure.OWNER_ONLY over Closure.DELEGATE_FIRST. Apparenty, OWNER_ONLY is faster, but DELEGATE_FIRST is really what we want, irrespective of speed
2023-12-07 12:05:57 +01:00
Lukas Eder
1c908c0294 [jOOQ/jOOQ#12985] Add org.gradle.api.Action support 2023-12-07 12:01:53 +01:00
Lukas Eder
d2e991454c [jOOQ/jOOQ#12985] Add @DelegatesTo annotation to all closures 2023-12-06 17:10:26 +01:00
Lukas Eder
5aa6185d92 [jOOQ/jOOQ#12985] Clone the closures for good measure 2023-12-06 11:15:57 +01:00
Lukas Eder
5befaf6576 [jOOQ/jOOQ#12985] Support a Groovy DSL in jOOQ-codegen-gradle 2023-12-05 16:37:21 +01:00
Lukas Eder
9fec09343a [jOOQ/jOOQ#12985] Removed requirement for redundant configuration() 2023-12-01 15:14:47 +01:00
Lukas Eder
6254658998 [jOOQ/jOOQ#12985] [jOOQ/jOOQ#15400] Use new kotlin DSL 2023-07-13 16:44:01 +02:00
Lukas Eder
ce4ff6e8a5 [jOOQ/jOOQ#12985] Create an official jooq-codegen-gradle plugin (WIP) 2023-07-13 14:30:49 +02:00
Lukas Eder
da06c1a3bd Moved example projects to /jOOQ-examples 2013-11-22 16:22:24 +01:00
Lukas Eder
6202fdfdc8 Release 3.3.0-SNAPSHOT 2013-11-01 10:12:17 +01:00
Lukas Eder
3d7a440df0 Set all Eclipse settings to use Unix-style line separators 2013-10-10 09:53:11 +02:00
Lukas Eder
5080114610 Merge branch 'master' of git@github.com:jOOQ/jOOQ.git
Conflicts:
	jOOQ-codegen/src/main/java/org/jooq/util/JavaGenerator.java
2013-10-07 10:45:00 +02:00
Lukas Eder
2e331e6215 Added .gitignore 2013-08-27 12:27:20 +02:00
Lukas Eder
4bee316f0c Reordered pom.xml 2013-08-27 11:34:52 +02:00
Lukas Eder
81a282e5cf Added Eclipse settings to new Gradle module 2013-08-27 11:34:20 +02:00
Ben Manes
9f160d5e86 Contribute Gradle plugin
Contributing the [Gradle plugin](https://github.com/ben-manes/gradle-jooq-plugin) required,
 - Updating to the package names
 - Adding to the Maven build. The Gradle plugin dependencies piggyback
   on Flyway's repository, as Gradle does not officially publish the
   dependencies for building plugins in another build tool.
 - Assigning copyright

This contribution is not tested due to a broader build failure in
`FlashbackTable`.

Note that this plugin took a simple and fast approach by leveraging
Groovy's XML markeup syntax. This provided a concise extension, at
the cost of flexibility to customize the plugin in multiple build
scripts (e.g. subproject adding data type converters). A richer
plugin should be created, but exceeded the scope of what was needed
at the time of development.
2013-08-26 03:05:05 -07:00