|
10 | 10 | <packaging>bundle</packaging>
|
11 | 11 | <properties>
|
12 | 12 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
13 |
| - <jdk.version>1.8</jdk.version> |
14 |
| - <jdk.version.test>1.8</jdk.version.test> |
| 13 | + <jdk.version>8</jdk.version> |
| 14 | + <jdk.test.version>17</jdk.test.version> |
15 | 15 | <!-- requires SQL Developer 4.1.0 or higher (first version based on JDK 1.8) -->
|
16 |
| - <sqldev.basedir>/Applications/SQLDeveloper21.4.2.app/Contents/Resources/sqldeveloper</sqldev.basedir> |
| 16 | + <!-- last version of SQL Developer that uses JDK 8 is 21.4.3 --> |
| 17 | + <sqldev.basedir>/Applications/SQLDeveloper21.4.3.app/Contents/Resources/sqldeveloper</sqldev.basedir> |
17 | 18 | <final.name>utplsql_for_SQLDev_${project.version}</final.name>
|
18 | 19 | <!-- arguments to by added by jacoco plugin for test runs with coverage -->
|
19 | 20 | <!-- -noverify is required in some environments to avoid java.lang.VerifyError -->
|
|
206 | 207 | <!-- used mainly to access the database via JdbcTemplate -->
|
207 | 208 | <groupId>org.springframework</groupId>
|
208 | 209 | <artifactId>spring-jdbc</artifactId>
|
209 |
| - <version>5.3.16</version> |
| 210 | + <version>5.3.22</version> |
210 | 211 | </dependency>
|
211 | 212 | <dependency>
|
212 | 213 | <!-- transitive reference, but IntelliJ wants to have it explicit (to avoid warnings) -->
|
213 | 214 | <groupId>org.springframework</groupId>
|
214 | 215 | <artifactId>spring-core</artifactId>
|
215 |
| - <version>5.3.20</version> |
| 216 | + <version>5.3.22</version> |
216 | 217 | </dependency>
|
217 | 218 | <dependency>
|
218 | 219 | <!-- used for HtmlUtils.htmlEscape in RunnerPanel -->
|
219 | 220 | <groupId>org.springframework</groupId>
|
220 | 221 | <artifactId>spring-web</artifactId>
|
221 |
| - <version>5.3.16</version> |
| 222 | + <version>5.3.22</version> |
222 | 223 | </dependency>
|
223 | 224 | <dependency>
|
224 | 225 | <!-- optional, for RunGenerator and TestGenerator -->
|
|
244 | 245 | <!-- Build Settings -->
|
245 | 246 | <build>
|
246 | 247 | <sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
|
247 |
| - <testSourceDirectory>${project.basedir}/src/test/java</testSourceDirectory> |
248 | 248 | <resources>
|
249 | 249 | <resource>
|
250 | 250 | <directory>src/main/resources</directory>
|
|
253 | 253 | </includes>
|
254 | 254 | </resource>
|
255 | 255 | </resources>
|
| 256 | + <testSourceDirectory>${project.basedir}/src/test/java</testSourceDirectory> |
| 257 | + <testResources> |
| 258 | + <testResource> |
| 259 | + <directory>src/test/resources</directory> |
| 260 | + <includes> |
| 261 | + <include>**/*.*</include> |
| 262 | + </includes> |
| 263 | + </testResource> |
| 264 | + </testResources> |
256 | 265 | <plugins>
|
257 |
| - <plugin> |
258 |
| - <groupId>org.apache.maven.plugins</groupId> |
259 |
| - <version>3.10.0</version> |
260 |
| - <artifactId>maven-compiler-plugin</artifactId> |
261 |
| - <configuration> |
262 |
| - <source>${jdk.version}</source> |
263 |
| - <target>${jdk.version}</target> |
264 |
| - <!-- used by Maven build --> |
265 |
| - <testSource>${jdk.version.test}</testSource> |
266 |
| - <testTarget>${jdk.version.test}</testTarget> |
267 |
| - <includes> |
268 |
| - <include>**/*.java</include> |
269 |
| - </includes> |
270 |
| - </configuration> |
271 |
| - <executions> |
272 |
| - <!-- used by Eclipse when updating project --> |
273 |
| - <execution> |
274 |
| - <id>test-compile</id> |
275 |
| - <phase>process-test-sources</phase> |
276 |
| - <goals> |
277 |
| - <goal>testCompile</goal> |
278 |
| - </goals> |
279 |
| - <configuration> |
280 |
| - <source>${jdk.version.test}</source> |
281 |
| - <target>${jdk.version.test}</target> |
282 |
| - </configuration> |
283 |
| - </execution> |
284 |
| - </executions> |
285 |
| - </plugin> |
286 | 266 | <plugin>
|
287 | 267 | <groupId>org.apache.maven.plugins</groupId>
|
288 | 268 | <artifactId>maven-surefire-plugin</artifactId>
|
|
316 | 296 | <plugin>
|
317 | 297 | <groupId>org.apache.maven.plugins</groupId>
|
318 | 298 | <artifactId>maven-antrun-plugin</artifactId>
|
319 |
| - <version>3.0.0</version><!--$NO-MVN-MAN-VER$--> |
| 299 | + <version>3.1.0</version><!--$NO-MVN-MAN-VER$--> |
320 | 300 | <executions>
|
321 | 301 | <execution>
|
322 | 302 | <phase>prepare-package</phase>
|
|
337 | 317 | <plugin>
|
338 | 318 | <groupId>org.codehaus.mojo</groupId>
|
339 | 319 | <artifactId>properties-maven-plugin</artifactId>
|
340 |
| - <version>1.0.0</version> |
| 320 | + <version>1.1.0</version> |
341 | 321 | <executions>
|
342 | 322 | <execution>
|
343 | 323 | <phase>initialize</phase>
|
|
357 | 337 | <plugin>
|
358 | 338 | <groupId>org.codehaus.mojo</groupId>
|
359 | 339 | <artifactId>build-helper-maven-plugin</artifactId>
|
360 |
| - <version>3.1.0</version> |
| 340 | + <version>3.3.0</version> |
361 | 341 | <executions>
|
362 | 342 | <execution>
|
363 | 343 | <id>parse-version</id>
|
|
427 | 407 | <!-- - Error:osgi: [org.utplsql.sqldev] Invalid value for Bundle-Version, ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion} does not match \d{1,9}(\.\d{1,9}(\.\d{1,9}(\.[-\w]+)?)?)? -->
|
428 | 408 | <groupId>org.apache.felix</groupId>
|
429 | 409 | <artifactId>maven-bundle-plugin</artifactId>
|
430 |
| - <version>4.2.1</version> |
| 410 | + <version>5.1.7</version> <!-- Classes found in the wrong director warning with 5.1.7, TODO: find solution to remove it --> |
431 | 411 | <extensions>true</extensions>
|
432 | 412 | <configuration>
|
433 | 413 | <finalName>${project.name}</finalName>
|
|
497 | 477 | </plugin>
|
498 | 478 | <plugin>
|
499 | 479 | <artifactId>maven-assembly-plugin</artifactId>
|
500 |
| - <version>3.3.0</version><!--$NO-MVN-MAN-VER$--> |
| 480 | + <version>3.4.1</version><!--$NO-MVN-MAN-VER$--> |
501 | 481 | <configuration>
|
502 | 482 | <finalName>${final.name}</finalName>
|
503 | 483 | <appendAssemblyId>false</appendAssemblyId>
|
|
519 | 499 | <plugin>
|
520 | 500 | <groupId>net.nicoulaj.maven.plugins</groupId>
|
521 | 501 | <artifactId>checksum-maven-plugin</artifactId>
|
522 |
| - <version>1.9</version> |
| 502 | + <version>1.11</version> |
523 | 503 | <executions>
|
524 | 504 | <execution>
|
525 | 505 | <id>calculate-checksums</id>
|
|
533 | 513 | <plugin>
|
534 | 514 | <groupId>org.jacoco</groupId>
|
535 | 515 | <artifactId>jacoco-maven-plugin</artifactId>
|
536 |
| - <version>0.8.5</version> |
| 516 | + <version>0.8.8</version> |
537 | 517 | <executions>
|
538 | 518 | <execution>
|
539 | 519 | <goals>
|
|
645 | 625 | <tag>master</tag>
|
646 | 626 | <url>https://github.com/utPLSQL/utPLSQL-SQLDeveloper</url>
|
647 | 627 | </scm>
|
| 628 | + |
| 629 | + <!-- Profiles as workaround for https://youtrack.jetbrains.com/issue/IDEA-85478 as described in --> |
| 630 | + <!-- https://intellij-support.jetbrains.com/hc/en-us/community/posts/360009767720-I-want-to-run-tests-with-different-java-version-than-my-source-java-version --> |
| 631 | + <profiles> |
| 632 | + <profile> |
| 633 | + <id>default</id> |
| 634 | + <activation> |
| 635 | + <activeByDefault>true</activeByDefault> |
| 636 | + </activation> |
| 637 | + <build> |
| 638 | + <plugins> |
| 639 | + <plugin> |
| 640 | + <groupId>org.apache.maven.plugins</groupId> |
| 641 | + <version>3.10.1</version> |
| 642 | + <artifactId>maven-compiler-plugin</artifactId> |
| 643 | + <configuration> |
| 644 | + <!-- different Java version for main and test --> |
| 645 | + <!-- works with Maven builder from IDE or command line --> |
| 646 | + <release>${jdk.version}</release> |
| 647 | + <testRelease>${jdk.test.version}</testRelease> |
| 648 | + </configuration> |
| 649 | + </plugin> |
| 650 | + </plugins> |
| 651 | + </build> |
| 652 | + </profile> |
| 653 | + <profile> |
| 654 | + <id>idea</id> |
| 655 | + <activation> |
| 656 | + <activeByDefault>false</activeByDefault> |
| 657 | + <property> |
| 658 | + <name>idea.maven.embedder.version</name> |
| 659 | + </property> |
| 660 | + </activation> |
| 661 | + <build> |
| 662 | + <plugins> |
| 663 | + <plugin> |
| 664 | + <groupId>org.apache.maven.plugins</groupId> |
| 665 | + <version>3.10.1</version> |
| 666 | + <artifactId>maven-compiler-plugin</artifactId> |
| 667 | + <configuration> |
| 668 | + <!-- IDEA requires same Java version for main and test --> |
| 669 | + <!-- see https://youtrack.jetbrains.com/issue/IDEA-85478 --> |
| 670 | + <release>${jdk.test.version}</release> |
| 671 | + <testRelease>${jdk.test.version}</testRelease> |
| 672 | + </configuration> |
| 673 | + </plugin> |
| 674 | + </plugins> |
| 675 | + </build> |
| 676 | + </profile> |
| 677 | + </profiles> |
648 | 678 | </project>
|
0 commit comments