[jOOQ/jOOQ#12180] Add a jOOQ-scala-3.5 extension library

This commit is contained in:
Lukas Eder 2024-08-29 14:54:47 +02:00
parent 172a0e9b3d
commit 25ebce0f4c
11 changed files with 1262 additions and 5 deletions

View File

@ -1286,7 +1286,7 @@ public class Generate implements Serializable, XMLAppendable
}
/**
* Generate POJOs as case classes, when using the ScalaGenerator.
* Generate POJOs as case classes, when using the ScalaGenerator or Scala3Generator.
*
* @return
* possible object is
@ -1298,7 +1298,7 @@ public class Generate implements Serializable, XMLAppendable
}
/**
* Generate POJOs as case classes, when using the ScalaGenerator.
* Generate POJOs as case classes, when using the ScalaGenerator or Scala3Generator.
*
* @param value
* allowed object is
@ -3573,7 +3573,7 @@ public class Generate implements Serializable, XMLAppendable
}
/**
* Generate POJOs as case classes, when using the ScalaGenerator.
* Generate POJOs as case classes, when using the ScalaGenerator or Scala3Generator.
*
*/
public Generate withPojosAsScalaCaseClasses(Boolean value) {

View File

@ -2659,7 +2659,7 @@ jOOQ API, without adding custom data type bindings to them.]]></jxb:javadoc></jx
</element>
<element name="pojosAsScalaCaseClasses" type="boolean" default="true" minOccurs="0" maxOccurs="1">
<annotation><appinfo><jxb:property><jxb:javadoc><![CDATA[Generate POJOs as case classes, when using the ScalaGenerator.]]></jxb:javadoc></jxb:property></appinfo></annotation>
<annotation><appinfo><jxb:property><jxb:javadoc><![CDATA[Generate POJOs as case classes, when using the ScalaGenerator or Scala3Generator.]]></jxb:javadoc></jxb:property></appinfo></annotation>
</element>
<element name="pojosAsKotlinDataClasses" type="boolean" default="true" minOccurs="0" maxOccurs="1">

6
jOOQ-scala_3.5/.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
/target
/.cache
/.idea
/*.iml

View File

@ -0,0 +1,19 @@
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Other licenses:
-----------------------------------------------------------------------------
Commercial licenses for this work are available. These replace the above
Apache-2.0 license and offer limited warranties, support, maintenance, and
commercial database integrations.
For more information, please visit: https://www.jooq.org/legal/licensing

10
jOOQ-scala_3.5/NOTICE.txt Normal file
View File

@ -0,0 +1,10 @@
Third party NOTICE.txt contents
===============================
Contents of https://github.com/apache/commons-lang/blob/master/NOTICE.txt
-------------------------------------------------------------------------
Apache Commons Lang
Copyright 2001-2019 The Apache Software Foundation
This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).

View File

@ -0,0 +1 @@
jOOQ-Scala Extensions

112
jOOQ-scala_3.5/pom.xml Normal file
View File

@ -0,0 +1,112 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jooq</groupId>
<artifactId>jooq-parent</artifactId>
<version>3.20.0-SNAPSHOT</version>
</parent>
<artifactId>jooq-scala_3.5</artifactId>
<name>jOOQ Scala 3.5</name>
<properties>
<jooq-testdata-dir>${project.basedir}/../.data</jooq-testdata-dir>
</properties>
<build>
<sourceDirectory>src/main/scala</sourceDirectory>
<testSourceDirectory>src/test/scala</testSourceDirectory>
<plugins>
<!-- The Scala compiler plugin -->
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
<configuration>
<scalaVersion>${scala3.version}</scalaVersion>
</configuration>
</plugin>
<!-- The jar plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>empty-javadoc-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>javadoc</classifier>
<classesDirectory>${basedir}/javadoc</classesDirectory>
<archive>
<manifestEntries>
<Automatic-Module-Name>org.jooq.scala_3_5</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.jooq</groupId>
<artifactId>jooq</artifactId>
</dependency>
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala3-library_3</artifactId>
<version>${scala3.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,19 @@
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Other licenses:
-----------------------------------------------------------------------------
Commercial licenses for this work are available. These replace the above
Apache-2.0 license and offer limited warranties, support, maintenance, and
commercial database integrations.
For more information, please visit: https://www.jooq.org/legal/licensing

View File

@ -0,0 +1,2 @@
Thanks for downloading jOOQ.
Please visit http://www.jooq.org for more information.

File diff suppressed because it is too large Load Diff

View File

@ -259,6 +259,11 @@
<version>${kotlinx.coroutines.version}</version>
</dependency>
<dependency>
<groupId>org.jooq</groupId>
<artifactId>jooq-scala_3.5</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.jooq</groupId>
<artifactId>jooq-scala_2.13</artifactId>
@ -393,7 +398,7 @@
<dependency>
<groupId>org.scalatest</groupId>
<artifactId>scalatest_3</artifactId>
<version>3.2.14</version>
<version>3.2.19</version>
<scope>test</scope>
</dependency>