Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
9542dfa
Add missing schemas for Jakarta Server Pages Tag Library
pepness Apr 26, 2024
41549ec
Cleanup Warnings in TerminalSupportImpl
matthiasblaesing Jun 2, 2024
e1dd39d
General cleanup (unused code/warning) in ContextAction
matthiasblaesing Jun 4, 2024
1a3b724
Fix StatefulActionProcessorTest
matthiasblaesing Jun 7, 2024
7397fd1
For boolean actions without an icon, retain the default JCheckBoxItem…
eirikbakke Dec 21, 2023
b5d7f1d
Avoid swallowing F2 in the Outline tree column; it should allow the c…
eirikbakke Dec 23, 2023
1c0095b
Correctly register weak property change listener on InputOutput
matthiasblaesing Jun 2, 2024
865768e
Maven pom template should use the javac release flag.
mbien Jun 24, 2024
4eefcbe
Revert "Removing TOOLTIP_QUERY_TYPE support for now"
matthiasblaesing Jun 27, 2024
aa3a674
Revert "Only avoid bridging to LSP API when a provider is registered …
matthiasblaesing Jun 27, 2024
4b6cc79
Revert "Make sure completion in TypeScript files continues to work"
matthiasblaesing Jun 27, 2024
12b0b3d
Revert "Avoid bridging to LSP API when there is real CompletionProvid…
matthiasblaesing Jun 27, 2024
9ef91b6
Revert "Let lsp.client display completions provided by CompletionColl…
matthiasblaesing Jun 27, 2024
7b16173
Merge pull request #7528 from matthiasblaesing/revert_7505
mbien Jul 2, 2024
cd5484c
JSF Templates need to take into account new namespace schema for Jaka…
matthiasblaesing Jul 1, 2024
bc70903
Detected CDI 1.1+ also on Jakarta CDI
matthiasblaesing Jul 1, 2024
b099dfe
Merge pull request #7515 from mbien/mvn-template-release-flag
mbien Jul 2, 2024
371383f
Initial position of breakpoints view is next to navigator
jtulach Jul 3, 2024
66953b8
Always open expression evaluator view
jtulach Jul 3, 2024
7d8881c
Docs update for 22.9.9 release of VSNetBeans
MartinBalin Jul 3, 2024
302256f
JDK Configuration mentioned in Changelog.
MartinBalin Jul 3, 2024
155b3d4
Merge pull request #7541 from MartinBalin/master
MartinBalin Jul 3, 2024
3f27736
#7496: Update breakpoints window position and always open expression …
jtulach Jul 3, 2024
a8c9cd8
PHP: removed built-in type real
troizet May 20, 2024
a450d0f
Merge pull request #7387 from troizet/php_remove_built_in_type_real
junichi11 Jul 4, 2024
a613257
Fix "Fix Imports" [GH-7546]
junichi11 Jul 6, 2024
113e2ce
Reduce redundant cast warnings. These happen as a side result of code…
BradWalker Jul 7, 2024
94a916c
Merge pull request #7549 from junichi11/php-gh-7546-fix-imports-issue
junichi11 Jul 7, 2024
d66c5df
Merge pull request #7552 from BradWalker/cleanup_redundant_casts
BradWalker Jul 8, 2024
46265d0
Fix unit tests
junichi11 Jul 8, 2024
ed247c4
Remove downloader from NBI
mbien Jul 2, 2024
f899535
Merge pull request #7553 from junichi11/php-fix-unit-tests
junichi11 Jul 8, 2024
83ec87b
Micronaut: Clear symbol cache on ClasspathInfo changes.
dbalek Jul 8, 2024
417654c
Merge pull request #7554 from dbalek/dbalek/micronaut-symbol-cache-fix
dbalek Jul 8, 2024
76e1f35
Merge pull request #7542 from mbien/nbi-remove-downloader
mbien Jul 8, 2024
1987b83
CI: start testing on 23-ea
mbien Jun 27, 2024
ddf3678
NBI: disable update check again
mbien Jul 6, 2024
cd0bb01
Merge pull request #7550 from mbien/nbi-no-updates
mbien Jul 8, 2024
7816b34
Docker - Load images
lukaz-sampaio Jul 8, 2024
1a1a3ac
Merge pull request #7533 from lukaz-sampaio/issue-7275
matthiasblaesing Jul 8, 2024
b538269
Merge pull request #7525 from mbien/ci-23ea
mbien Jul 8, 2024
5277b1b
Add support for GlassFish 7.0.15 and GlassFish 8.0.0-M6
pepness Jun 15, 2024
de6a81d
Improving multistep infrastructure, command for uploading cloud asset…
jhorvath Jun 25, 2024
50be12a
Merge pull request #7540 from jhorvath/cloud-assets-to-configmap
jhorvath Jul 10, 2024
5eaf3e5
Use relative wrapper paths to prevent space-in-path bugs
sdedic Jul 10, 2024
846d426
Merge pull request #7558 from sdedic/maven/relative-wrapper-path
sdedic Jul 10, 2024
75ed6f1
Upgrade to nb-javac from JDK 23, build 30
lahodaj Jul 10, 2024
8b31dac
Check for source level java compatibility
petrovic-d Jul 4, 2024
fcb864f
Merge pull request #7484 from lahodaj/javac23-upgrade
mbien Jul 10, 2024
2b85175
Merge pull request #7555 from petrovic-d/GCN-4643-java-source-level-c…
sdedic Jul 10, 2024
03ebb0a
Remove now unused welcome module code.
neilcsmith-net Jul 12, 2024
290b582
Fix/reenable tests for web.jspparser
matthiasblaesing Jul 9, 2024
782794d
Move the Recent Projects and Recent Files widgets into the respective…
neilcsmith-net Jul 12, 2024
64b2ceb
Fix use-instanceof-pattern hint messages
mbien Jul 13, 2024
6ea612d
MavenVersionSettings: Stick to maven 3 plugins for now
mbien Jul 13, 2024
7b1176a
Move Gradle module to Java 17 and NbProjectInfoAction to Java 8
lkishalmi Jul 3, 2024
503dd1f
Merge pull request #7573 from mbien/fix-instanceof-pattern-hint-msgs
mbien Jul 13, 2024
6d5b4c8
Merge pull request #7574 from mbien/stick-to-mvn3-plugins
mbien Jul 14, 2024
2892a1d
Merge pull request #7561 from pepness/glassfish-8-m5
pepness Jul 14, 2024
08af077
Remove token requiring a WindowManager implementation from Dashboard …
neilcsmith-net Jul 15, 2024
3391c54
Update readme with source level java compatibility check
petrovic-d Jul 15, 2024
d093acd
WebAppParseSupport: Cleanup NetBeans warnings
matthiasblaesing Jun 28, 2024
bf66058
Fix and simplify handling of JSPParser classloader
matthiasblaesing Jul 9, 2024
41fe840
Java Hints SPI module cleanup
mbien Jul 10, 2024
7fba278
HintsInvoker logging improvements
mbien Jul 11, 2024
7ad885e
Performance Improvements
mbien Jul 11, 2024
08bbe94
Update commons-compress from 1.26.1 to 1.26.2
mbien Jul 12, 2024
f7a9728
Update commons-net from 3.10.0 to 3.11.1
mbien Jul 12, 2024
c8a8b9c
Update commons-codec from 1.16.1 to 1.17.0
mbien Jul 13, 2024
7f3abe8
Update commons-io from 2.16.0 to 2.16.1
mbien Jul 13, 2024
edae3ec
Update commons-logging from 1.3.1 to 1.3.3
mbien Jul 13, 2024
6ff6ae2
Update Freemarker from 2.3.32 to 2.3.33
mbien Jul 13, 2024
0a79e6f
Update JUnit from 5.10.2 to 5.10.3
mbien Jul 13, 2024
6cbc78c
Update Jackson from 2.17.0 to 2.17.2
mbien Jul 13, 2024
8282234
Update guava from 33.0.0 to 33.2.1
mbien Jul 13, 2024
49a108a
Update gson from 2.8.9 to 2.11.0
mbien Jul 13, 2024
65ac5d0
Update maven indexer to 7.1.4 and lucene to 9.11.1
mbien Jul 13, 2024
151d4d2
Update jgit from 9.9.0 to 9.10.0
mbien Jul 12, 2024
54e4883
Merge pull request #7563 from mbien/hints-spi-cleanup
mbien Jul 15, 2024
34d371d
Merge pull request #7569 from mbien/lib-upgrades-nb23
mbien Jul 16, 2024
1a6ec98
Remove discontinued Javeleon integration.
mbien Jul 8, 2024
dfcf00f
Merge pull request #7556 from mbien/remove-javeleon
mbien Jul 16, 2024
faabea0
Merge pull request #7566 from neilcsmith-net/dash-nb23
neilcsmith-net Jul 16, 2024
9ef66d3
Update manifest.mf to separate the OpenIDE-Module-Provides with comma
YannLeCorse Jul 16, 2024
2027c7d
Upgrade Gradle Tooling API to 8.9
lkishalmi Jul 16, 2024
76d9b45
Clean old temporary local maven index cache dir before scan
mbien Jul 16, 2024
0d9ea57
Merge pull request #7539 from matthiasblaesing/jakarta_fixes2
matthiasblaesing Jul 16, 2024
1b31400
Merge pull request #7586 from mbien/fix-cannot-create-dir
mbien Jul 16, 2024
6163179
Lazy init SMO backend and increase timeout
mbien Jul 16, 2024
55aa90d
Update FlatLaf from 3.3 to 3.5
mbien Jul 12, 2024
4233b75
Ensure visible dashboard widget repainted when elements changed.
neilcsmith-net Jul 17, 2024
a6911ed
Merge pull request #7578 from petrovic-d/GCN-4643-update-readme
MartinBalin Jul 17, 2024
8d39338
Adjust the Icon implementation in ImageUtilities to make SVG/HiDPI ic…
eirikbakke Dec 2, 2023
397d507
Warmup Maven Embedder to improve first-project-creation UX
mbien Jul 17, 2024
8dfbb29
Gradle Groovy Application/Library Project Creation Wizards
lkishalmi Apr 11, 2024
673cedf
Merge pull request #7589 from neilcsmith-net/dash-nb23
neilcsmith-net Jul 17, 2024
ba84e84
Improved Toolbar overflow impl.
mbien Jan 29, 2024
bc7446e
Merge pull request #7430 from matthiasblaesing/invalid_weak_listener_…
matthiasblaesing Jul 17, 2024
0f675a8
Merge pull request #7567 from matthiasblaesing/fix_jsp_parser2
matthiasblaesing Jul 17, 2024
bcebbed
Merge pull request #7012 from mbien/overflow-toolbar-fixes
mbien Jul 17, 2024
0f413a1
Merge pull request #7565 from mbien/flatlaf341
mbien Jul 17, 2024
d93aefd
Merge pull request #7584 from YannLeCorse/core-output2-manifest-missi…
mbien Jul 17, 2024
2182111
Merge pull request #7590 from mbien/warmup-mvn-embedder
mbien Jul 17, 2024
1e42bf8
- Add support for Java SE 24 for Tomcat/TomEE and GlassFish
pepness Jul 17, 2024
31a270c
Merge pull request #7587 from mbien/lazy-smo
mbien Jul 17, 2024
18ef974
Fix Yaml Editor does not respect indent size on new line
lkishalmi Jul 13, 2024
b772490
fix javadoc task source properties + javadoc typo
ebarboni Jul 18, 2024
0a958b6
After 562cfade954ea27308de01738813d050d1b57ce1 ContextAction.Performe…
matthiasblaesing Jun 7, 2024
40b82fc
CloseButtonTabbedPane does not update title after it was set to empty…
matthiasblaesing Jun 9, 2024
c4f10c8
Popupmenu for Terminals should be invoked for target tab, not for vis…
matthiasblaesing Jun 9, 2024
3add6af
Merge pull request #7593 from ebarboni/apidocnb230
ebarboni Jul 18, 2024
9b1b308
Merge pull request #7451 from matthiasblaesing/cleanup_context_action2
matthiasblaesing Jul 18, 2024
ce5534b
Merge pull request #7340 from pepness/jstl-3.1-4.0
mbien Jul 18, 2024
a4cdfcc
Merge pull request #7592 from pepness/tomcat-se-24
mbien Jul 18, 2024
1c980f7
Support for project JDK settings.
sdedic Jul 8, 2024
4563386
- TomcatFactory does not return correct TomEE version when registering
pepness Jul 19, 2024
9b7ce89
Merge pull request #7497 from sdedic/sdedic/project-platform-setting
sdedic Jul 19, 2024
89f63f0
Add the `Error` class and the `Throwable` interface as completion ite…
junichi11 Jul 19, 2024
09a7b53
Added support for container repostory and run in compute instance
jhorvath Jul 18, 2024
cf4a54d
Merge pull request #7595 from jhorvath/oci-container-registry
jhorvath Jul 19, 2024
b1a4514
Merge pull request #7599 from junichi11/php-gh-7594-cc-throwable-error
junichi11 Jul 20, 2024
a2d2906
Enterprise: Fix multiple places where null values could be encountere…
matthiasblaesing Jul 21, 2024
98ac8a4
Merge pull request #7598 from pepness/fix-tomee-10
pepness Jul 21, 2024
cadf7ca
Introduce-method refactoring should suggest a method name
mbien Jul 6, 2024
d136c79
Add global maven goal presets
mbien Jul 1, 2024
91c23e0
Merge pull request #7537 from mbien/global-goal-presets
mbien Jul 22, 2024
ad0e8c1
telemetry added for LSP
Achal1607 Jul 23, 2024
fcd5972
Merge pull request #7435 from Achal1607/telemetry
sdedic Jul 24, 2024
bcdd1ed
Basic JDK picker support for single-file-java-programs.
mbien Jul 24, 2024
c7eda4f
Re-apply #7505 that was reverted by #7528 with additional resolved.ge…
jtulach Jul 25, 2024
557c823
ErrorProviderBridge exposes content of ErrorProviders to NetBeans IDE
jtulach Jul 25, 2024
87a9d8c
Merge pull request #7551 from mbien/introduce-method-with-valid-default
mbien Jul 25, 2024
536ddb9
Merge pull request #7579: Using LSP's ErrorProvider & another attempt…
jtulach Jul 25, 2024
f961f5f
Merge pull request #7605 from mbien/single-source-jdk-picker
mbien Jul 25, 2024
182c346
Merge pull request #7478 from eirikbakke/pr-outlineF2
mbien Jul 25, 2024
3242f90
Merge pull request #7474 from eirikbakke/pr-menucheckicon
mbien Jul 25, 2024
372dc23
Implement suppress warnings on for Unused hint and codeAction for sup…
Achal1607 Jul 19, 2024
573b1dc
Merge pull request #7548 from Achal1607/javavscode-96
mbien Jul 25, 2024
b2b45ae
Merge pull request #7603 from matthiasblaesing/null_checks_enterprise
matthiasblaesing Jul 25, 2024
b04a3bc
Increment spec versions for Apache NetBeans 24 development
ebarboni Jul 26, 2024
765b1cb
Merge pull request #7613 from ebarboni/spec-versions-nb240
ebarboni Jul 26, 2024
c2fec53
changes for 23 rc1
ebarboni Jul 26, 2024
4630e66
[#7228] - Add debugger default variable formatter for BigInteger and …
ShadowOfLies Jul 28, 2024
cfff4e9
Adding container repository from Cloud Assets View
petrovic-d Jul 30, 2024
03aa32d
Merge pull request #7623 from petrovic-d/add-container-repository-to-…
jhorvath Jul 31, 2024
6224a8b
Source action command args not getting prefixed correctly according t…
Achal1607 Jul 30, 2024
2383962
Instruct users on setting up cloud resources when opening SSH session…
petrovic-d Jul 24, 2024
0b9a528
Merge pull request #7621 from Achal1607/javavscode-214
ebarboni Aug 2, 2024
9554655
Fix possible InaccessibleObjectExceptions during debugging session
mbien Aug 2, 2024
3c0f522
CodeGenerator should be able to generate basic code for records
mbien Jul 15, 2024
5f63648
truffle.RemoteServices should parse the java version correctly
mbien Aug 3, 2024
08d86f1
Fix java completion sort for not-imported items.
mbien Aug 2, 2024
a5fa02d
Merge pull request #7617 from ShadowOfLies/nb-gh-7228
matthiasblaesing Aug 4, 2024
3502830
Merge pull request #7607 from petrovic-d/instruct-user-to-set-cloud-r…
jhorvath Aug 5, 2024
4f80c4d
Minor NBM wizard pom generation fixes and plugin version bumps
mbien Aug 1, 2024
0c15d65
Update FlatLaf from 3.5 to 3.5.1
mbien Aug 5, 2024
aba81a5
Merge pull request #7581 from mbien/quickfix-basic-codegen-record-sup…
ebarboni Aug 6, 2024
1e7ab53
Merge pull request #7631 from mbien/java-completion-sort-fix_delivery
ebarboni Aug 6, 2024
f6423d2
Merge pull request #7633 from mbien/fix-debugger-ioe_delivery
ebarboni Aug 6, 2024
1495ec9
Merge pull request #7639 from mbien/flatlaf351
ebarboni Aug 6, 2024
14c9119
Update nb-javac to jdk-23+35.
mbien Aug 5, 2024
fd8c7ae
Merge pull request #7637 from mbien/nb-javac-2335
ebarboni Aug 7, 2024
be2a72c
Merge pull request #7628 from mbien/nbm-wizard-version-fixes_delivery
ebarboni Aug 7, 2024
3134074
Merge pull request #7635 from mbien/parse-java-version-fix_delivery
ebarboni Aug 7, 2024
3b74c2f
Merge pull request #7630 from apache/delivery
ebarboni Aug 7, 2024
2c3e711
Testing JDK-8337976
lahodaj Aug 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE/netbeans_bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ body:
multiple: false
options:
- "Apache NetBeans 22"
# - "Apache NetBeans 22 release candidate"
- "Apache NetBeans 23 release candidate"
- "Apache NetBeans latest daily build"
validations:
required: true
Expand Down Expand Up @@ -73,6 +73,7 @@ body:
multiple: false
options:
- "No / Don't know"
- "Apache NetBeans 22"
- "Apache NetBeans 21"
- "Apache NetBeans 20"
- "Apache NetBeans 19"
Expand Down
80 changes: 20 additions & 60 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
timeout-minutes: 40
strategy:
matrix:
java: [ '17', '21', '22' ]
java: [ '17', '21', '23-ea' ]
exclude:
- java: ${{ github.event_name == 'pull_request' && 'nothing' || '21' }}
fail-fast: false
Expand Down Expand Up @@ -525,6 +525,18 @@ jobs:
- name: Extract
run: tar --zstd -xf build.tar.zst

- name: apisupport.project
run: ant $OPTS -f apisupport/apisupport.project test

- name: apisupport.refactoring
run: ant $OPTS -f apisupport/apisupport.refactoring test

- name: apisupport.wizards
run: ant $OPTS -f apisupport/apisupport.wizards test

- name: timers
run: ant $OPTS -f apisupport/timers test

- name: ide/api.xml
run: ant $OPTS -f ide/api.xml test

Expand Down Expand Up @@ -808,7 +820,7 @@ jobs:
timeout-minutes: 50
strategy:
matrix:
java: [ '17', '21', '22' ]
java: [ '17', '21', '23-ea' ]
exclude:
- java: ${{ github.event_name == 'pull_request' && 'nothing' || '21' }}
fail-fast: false
Expand Down Expand Up @@ -1403,56 +1415,6 @@ jobs:
paths: "./*/*/build/test/*/results/TEST-*.xml"


# TODO merge this job into other jobs once tests are fixed
apisupport-modules-test:
name: APISupport Modules on Linux/JDK ${{ matrix.java }}
needs: base-build
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
java: [ '17' ]
fail-fast: false
steps:

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: ${{ env.DEFAULT_JAVA_DISTRIBUTION }}

- name: Setup Xvfb
run: |
echo "DISPLAY=:99.0" >> $GITHUB_ENV
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &

- name: Download Build
uses: actions/download-artifact@v4
with:
name: build

- name: Extract
run: tar --zstd -xf build.tar.zst

- name: apisupport.project
run: ant $OPTS -f apisupport/apisupport.project test

- name: apisupport.refactoring
run: ant $OPTS -f apisupport/apisupport.refactoring test

- name: apisupport.wizards
run: ant $OPTS -f apisupport/apisupport.wizards test

- name: timers
run: ant $OPTS -f apisupport/timers test

- name: Create Test Summary
uses: test-summary/action@v2
if: failure()
with:
paths: "./*/*/build/test/*/results/TEST-*.xml"


java-hints-test:
name: Java Hints ${{ matrix.config }} on Linux/JDK ${{ matrix.java }}
# equals env.test_java == 'true'
Expand All @@ -1462,10 +1424,10 @@ jobs:
timeout-minutes: 60
strategy:
matrix:
java: [ '17', '22' ]
java: [ '17', '23-ea' ]
config: [ 'batch1', 'batch2' ]
exclude:
- java: ${{ github.event_name == 'pull_request' && 'nothing' || '22' }}
- java: ${{ github.event_name == 'pull_request' && 'nothing' || '23-ea' }}
fail-fast: false
steps:

Expand Down Expand Up @@ -1509,13 +1471,13 @@ jobs:
java-debugger-test:
name: Java Debugger tests on Linux/JDK ${{ matrix.java }}
# equals env.test_java == 'true'
if: ${{ contains(github.event.pull_request.labels.*.name, 'Java') || contains(github.event.pull_request.labels.*.name, 'ci:all-tests') || github.event_name != 'pull_request' }}
if: ${{ contains(github.event.pull_request.labels.*.name, 'Java') || contains(github.event.pull_request.labels.*.name, 'debugger') || contains(github.event.pull_request.labels.*.name, 'ci:all-tests') || github.event_name != 'pull_request' }}
needs: base-build
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
java: [ '17', '21', '22' ]
java: [ '17', '21', '23-ea' ]
exclude:
- java: ${{ github.event_name == 'pull_request' && 'nothing' || '21' }}
fail-fast: false
Expand Down Expand Up @@ -2114,9 +2076,8 @@ jobs:
- name: web.jsfapi
run: ant $OPTS -f enterprise/web.jsfapi test

# Fails
# - name: web.jspparser
# run: ant $OPTS -f enterprise/web.jspparser test
- name: web.jspparser
run: ant $OPTS -f enterprise/web.jspparser test

# Fails
# - name: web.project
Expand Down Expand Up @@ -2658,7 +2619,6 @@ jobs:
- java-hints-test
- java-debugger-test
- profiler-test
- apisupport-modules-test
- build-tools
- webcommon-test
- php
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
/nb/ide.launcher/windows/nbproject/Package-*.bash
/platform/o.n.bootstrap/launcher/windows/nbproject/Makefile-*.mk
/platform/o.n.bootstrap/launcher/windows/nbproject/Package-*.bash
/enterprise/web.jspparser/test/unit/data/emptyWebProject/lib/*.jar
/enterprise/web.jspparser/test/unit/data/project2/lib/*.jar

# Database logs
derby.log
Expand Down
2 changes: 1 addition & 1 deletion apisupport/apisupport.ant/manifest.mf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Manifest-Version: 1.0
OpenIDE-Module: org.netbeans.modules.apisupport.ant
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/apisupport/project/Bundle.properties
OpenIDE-Module-Specification-Version: 2.97
OpenIDE-Module-Specification-Version: 2.98
AutoUpdate-Show-In-Client: false
OpenIDE-Module-Layer: org/netbeans/modules/apisupport/project/resources/layer.xml
2 changes: 1 addition & 1 deletion apisupport/apisupport.installer.maven/manifest.mf
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ Manifest-Version: 1.0
AutoUpdate-Show-In-Client: false
OpenIDE-Module: org.netbeans.modules.apisupport.installer.maven
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/apisupport/installer/maven/Bundle.properties
OpenIDE-Module-Specification-Version: 1.47
OpenIDE-Module-Specification-Version: 1.48

2 changes: 1 addition & 1 deletion apisupport/apisupport.installer/manifest.mf
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ Manifest-Version: 1.0
AutoUpdate-Show-In-Client: false
OpenIDE-Module: org.netbeans.modules.apisupport.installer
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/apisupport/installer/Bundle.properties
OpenIDE-Module-Specification-Version: 1.48
OpenIDE-Module-Specification-Version: 1.49

2 changes: 1 addition & 1 deletion apisupport/apisupport.kit/manifest.mf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Manifest-Version: 1.0
OpenIDE-Module: org.netbeans.modules.apisupport.kit
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/apisupport/kit/Bundle.properties
OpenIDE-Module-Specification-Version: 1.55
OpenIDE-Module-Specification-Version: 1.56
OpenIDE-Module-Provides: org.netbeans.modules.apisupport.kit

2 changes: 1 addition & 1 deletion apisupport/apisupport.project/manifest.mf
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/apisupport/project/api/Bu
OpenIDE-Module-Requires: javax.script.ScriptEngine.freemarker
OpenIDE-Module-Layer: org/netbeans/modules/apisupport/project/ui/resources/layer.xml
AutoUpdate-Show-In-Client: false
OpenIDE-Module-Specification-Version: 1.101
OpenIDE-Module-Specification-Version: 1.102

2 changes: 1 addition & 1 deletion apisupport/apisupport.refactoring/manifest.mf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Manifest-Version: 1.0
OpenIDE-Module: org.netbeans.modules.apisupport.refactoring
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/apisupport/refactoring/Bundle.properties
OpenIDE-Module-Specification-Version: 1.62
OpenIDE-Module-Specification-Version: 1.63

2 changes: 1 addition & 1 deletion apisupport/apisupport.wizards/manifest.mf
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ AutoUpdate-Show-In-Client: false
OpenIDE-Module: org.netbeans.modules.apisupport.wizards
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/apisupport/project/ui/wizard/common/Bundle.properties
OpenIDE-Module-Layer: org/netbeans/modules/apisupport/project/ui/wizard/common/layer.xml
OpenIDE-Module-Specification-Version: 1.45
OpenIDE-Module-Specification-Version: 1.46

2 changes: 1 addition & 1 deletion apisupport/maven.apisupport/manifest.mf
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ Manifest-Version: 1.0
OpenIDE-Module: org.netbeans.modules.maven.apisupport/1
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/maven/apisupport/Bundle.properties
AutoUpdate-Show-In-Client: false
OpenIDE-Module-Specification-Version: 1.84
OpenIDE-Module-Specification-Version: 1.85

Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Collections;
import java.util.List;
import java.util.Properties;
Expand All @@ -49,6 +47,7 @@
import org.netbeans.modules.maven.model.pom.Project;
import org.netbeans.modules.maven.model.pom.Repository;
import org.netbeans.modules.maven.model.pom.RepositoryPolicy;
import org.netbeans.modules.maven.options.MavenVersionSettings;
import org.netbeans.modules.maven.spi.newproject.CreateProjectBuilder;
import org.openide.util.Exceptions;

Expand All @@ -58,12 +57,12 @@
*/
final class NBMNativeMWI {

static void instantiate(ProjectInfo vi, File projFile, String version, boolean useOsgi, MavenProject mp) {
static void instantiate(ProjectInfo vi, File projFile, String nbVersion, boolean useOsgi, MavenProject mp) {
CreateProjectBuilder builder = new CreateProjectBuilder(projFile, vi.groupId, vi.artifactId, vi.version)
.setPackageName(vi.packageName)
.setPackaging("nbm")
.setAdditionalNonPomWork(new AdditionalFiles())
.setAdditionalOperations(new AdditionalOperations(version, useOsgi));
.setAdditionalOperations(new AdditionalOperations(nbVersion, useOsgi));
if (mp != null) {
builder = builder.setParentProject(mp);
}
Expand Down Expand Up @@ -237,7 +236,6 @@ public void performOperation(POMModel model) {
//nbm-maven-plugin
boolean addPlugin = true;
String managedPVersion = null;
String pVersion = MavenNbModuleImpl.getLatestNbmPluginVersion();
// boolean useOsgiDepsSet = false;
if (parent != null) {
//TODO do we want to support the case when the plugin is defined in parent pom with inherited=true?
Expand All @@ -259,12 +257,13 @@ public void performOperation(POMModel model) {
}
}
}
MavenVersionSettings settings = MavenVersionSettings.getDefault();
if (addPlugin) {
Plugin p = model.getFactory().createPlugin();
p.setGroupId(MavenNbModuleImpl.GROUPID_APACHE);
p.setArtifactId(MavenNbModuleImpl.NBM_PLUGIN);
if (managedPVersion == null) {
p.setVersion(pVersion);
p.setVersion(MavenNbModuleImpl.getLatestNbmPluginVersion());
}
p.setExtensions(true);
if (useOsgi) {
Expand All @@ -278,52 +277,44 @@ public void performOperation(POMModel model) {
//now comes the compiler plugin
addPlugin = true;
managedPVersion = null;
String source = null;
String target = null;
pVersion = "3.11.0";
if (parent != null) {
//TODO do we want to support the case when the plugin is defined in parent pom with inherited=true?
PluginManagement pm = parent.getPluginManagement();
if (pm != null) {
for (org.apache.maven.model.Plugin p : pm.getPlugins()) {
if (Constants.GROUP_APACHE_PLUGINS.equals(p.getGroupId()) && Constants.PLUGIN_COMPILER.equals(p.getArtifactId())) {
managedPVersion = p.getVersion();
Xpp3Dom conf = (Xpp3Dom) p.getConfiguration();
if (conf != null) {
Xpp3Dom sourceEl = conf.getChild("source");
if (sourceEl != null) {
source = sourceEl.getValue();
}
Xpp3Dom targetEl = conf.getChild("target");
if (targetEl != null) {
target = targetEl.getValue();
if (parent.getProperties().getProperty("maven.compiler.release") != null) {
addPlugin = false;
} else {
for (org.apache.maven.model.Plugin p : pm.getPlugins()) {
if (Constants.GROUP_APACHE_PLUGINS.equals(p.getGroupId()) && Constants.PLUGIN_COMPILER.equals(p.getArtifactId())) {
managedPVersion = p.getVersion();
Xpp3Dom conf = (Xpp3Dom) p.getConfiguration();
if (conf != null) {
if ( conf.getChild("release") != null
|| conf.getChild("source") != null
|| conf.getChild("target") != null) {
addPlugin = false;
}
}
break;
}
break;
}
}
}
}
addPlugin = target == null || source == null;
if (addPlugin) {
Plugin p = model.getFactory().createPlugin();
p.setGroupId(Constants.GROUP_APACHE_PLUGINS);
p.setArtifactId(Constants.PLUGIN_COMPILER);
if (managedPVersion == null) {
p.setVersion(pVersion);
p.setVersion(settings.getVersion(Constants.GROUP_APACHE_PLUGINS, Constants.PLUGIN_COMPILER));
}
Configuration c = model.getFactory().createConfiguration();
c.setSimpleParameter("source", "1.8");
c.setSimpleParameter("target", "1.8");
p.setConfiguration(c);
getOrCreateBuild(model).addPlugin(p);
model.getProject().getProperties().setProperty("maven.compiler.release", "17");
}

//now the jar plugin
addPlugin = true;
managedPVersion = null;
String useManifest = null;
pVersion = "3.3.0";
if (parent != null) {
//TODO do we want to support the case when the plugin is defined in parent pom with inherited=true?
PluginManagement pm = parent.getPluginManagement();
Expand Down Expand Up @@ -359,6 +350,7 @@ public void performOperation(POMModel model) {
p.setGroupId(Constants.GROUP_APACHE_PLUGINS);
p.setArtifactId(Constants.PLUGIN_JAR);
if (managedPVersion == null) {
String pVersion = settings.getVersion(Constants.GROUP_APACHE_PLUGINS, Constants.PLUGIN_JAR);
p.setVersion(pVersion);
managedPVersion = pVersion;
}
Expand Down
Loading