Skip to content

Commit

Permalink
Pack of dependency updates
Browse files Browse the repository at this point in the history
- eclipse parent 1.0.7
- OSGI and Felix to latest
  - excluded scr, promise, function, cmpn
- hibernate-validator from 7 to 8
- jline from 2.14.5 to 3.21.0

Signed-off-by: David Matějček <dmatej@seznam.cz>
  • Loading branch information
dmatej committed Mar 31, 2022
1 parent 5167b98 commit 00bbae0
Show file tree
Hide file tree
Showing 17 changed files with 199 additions and 244 deletions.
5 changes: 0 additions & 5 deletions appserver/extras/embedded/common/bootstrap/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,6 @@
<artifactId>osgi.core</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>osgi.cmpn</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.glassfish.main.core</groupId>
<artifactId>glassfish</artifactId>
Expand Down
10 changes: 5 additions & 5 deletions appserver/featuresets/debug/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
<name>Debug</name>

<dependencies>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>osgi.core</artifactId>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.service.resolver</artifactId>
Expand All @@ -53,16 +57,12 @@
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.resolver</artifactId>
<version>2.0.4</version>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.framework</artifactId>
<version>7.0.3</version>
</dependency>




<dependency>
<groupId>org.glassfish.main.featuresets</groupId>
<artifactId>glassfish</artifactId>
Expand Down
12 changes: 5 additions & 7 deletions appserver/osgi-platforms/felix-webconsole-extension/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,17 @@

<dependencies>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>osgi.core</artifactId>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.webconsole</artifactId>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>osgi.cmpn</artifactId>
<artifactId>osgi.enterprise</artifactId>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.webconsole</artifactId>
<groupId>org.osgi</groupId>
<artifactId>osgi.core</artifactId>
</dependency>
<!-- TangYong's contribution towards Glassfish-12975 begins -->
<dependency>
<groupId>org.glassfish.main.security</groupId>
<artifactId>security-services</artifactId>
Expand All @@ -77,6 +76,5 @@
<artifactId>simple-glassfish-api</artifactId>
<version>${project.version}</version>
</dependency>
<!-- TangYong's contribution towards Glassfish-12975 ends -->
</dependencies>
</project>
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright (c) 2022 Contributors to the Eclipse Foundation
* Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
Expand All @@ -16,18 +17,21 @@

package org.glassfish.osgi.felixwebconsoleextension;

import org.apache.felix.webconsole.BrandingPlugin;
import org.apache.felix.webconsole.WebConsoleSecurityProvider;
import org.osgi.framework.*;
import org.osgi.service.cm.ConfigurationAdmin;
import org.osgi.util.tracker.ServiceTracker;

import java.io.IOException;
import java.util.Dictionary;
import java.util.Hashtable;
import java.util.logging.Level;
import java.util.logging.Logger;

import org.apache.felix.webconsole.BrandingPlugin;
import org.apache.felix.webconsole.WebConsoleSecurityProvider;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.Constants;
import org.osgi.framework.ServiceReference;
import org.osgi.service.cm.ConfigurationAdmin;
import org.osgi.util.tracker.ServiceTracker;

/**
*
* This activator servers following purposes:
Expand All @@ -41,7 +45,7 @@
*/
public class FelixWebConsoleExtensionActivator implements BundleActivator {

private Logger logger = Logger.getLogger(getClass().getPackage().getName());
private final Logger logger = Logger.getLogger(getClass().getPackage().getName());
private BundleContext context;
private static final String WEBCONSOLE_PID = "org.apache.felix.webconsole.internal.servlet.OsgiManager";
private static final String PROP_HTTP_SERVICE_SELECTOR = "http.service.filter";
Expand Down
2 changes: 1 addition & 1 deletion docs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.eclipse.ee4j</groupId>
<artifactId>project</artifactId>
<version>1.0.6</version>
<version>1.0.7</version>
<relativePath />
</parent>
<version>7.0.0-SNAPSHOT</version>
Expand Down
2 changes: 0 additions & 2 deletions nucleus/common/common-util/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,11 @@
<artifactId>logging-annotation-processor</artifactId>
<optional>true</optional>
</dependency>
<!-- Needed to have a bundle activator to set up a different serialization policy -->
<dependency>
<groupId>org.osgi</groupId>
<artifactId>osgi.core</artifactId>
<scope>provided</scope>
</dependency>
<!-- Needed to have a bundle activator to set up a different serialization policy -->
<dependency>
<groupId>org.osgi</groupId>
<artifactId>osgi.enterprise</artifactId>
Expand Down
5 changes: 0 additions & 5 deletions nucleus/core/bootstrap/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@
<artifactId>osgi.core</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>osgi.cmpn</artifactId>
<scope>provided</scope>
</dependency>

<!-- Although we package simple-glassfish-api bundle's content in glassfish.jar, in standalone mode, we have to create
a launcher classloader that has the launching APIs and OSGi APIs in same level. SO, we need this jar to be part of distribution.
Expand Down
2 changes: 1 addition & 1 deletion nucleus/core/kernel/osgi.bundle
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ DynamicImport-Package: org.glassfish.flashlight.provider, \
Import-Package: \
com.sun.enterprise.server.logging.*; resolution:=optional, \
org.jvnet.tiger_types;version="${project.version}", \
org.hibernate.validator.*;resolution:=optional;version="[7.0.0,8.0.0)", \
org.hibernate.validator.*;resolution:=optional;version="[8,9)", \
*
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#
# Copyright (c) 2022 Contributors to the Eclipse Foundation
# Copyright (c) 1997-2021 Oracle and/or its affiliates. All rights reserved.
# Copyright 2004 The Apache Software Foundation
#
Expand All @@ -18,18 +19,12 @@
# limitations under the License.
#



#
# Framework config properties.
#

# Packages exported by system bundle when framework is Felix.
# Unlike Equinox, Felix requires us to list all packages from felix.jar
# while using org.osgi.framework.system.packages property.
Felix.system.packages=\
org.osgi.dto; version=1.1, \
org.osgi.framework; version=1.9, \
org.osgi.dto; version=1.1.1, \
org.osgi.framework; version=1.10, \
org.osgi.framework.dto; version=1.8, \
org.osgi.framework.hooks.bundle; version=1.1, \
org.osgi.framework.hooks.resolver; version=1.0, \
Expand All @@ -41,13 +36,13 @@ Felix.system.packages=\
org.osgi.framework.startlevel.dto; version=1.0, \
org.osgi.framework.wiring; version=1.2, \
org.osgi.framework.wiring.dto; version=1.3, \
org.osgi.resource; version=1.0, \
org.osgi.resource.dto; version=1.0, \
org.osgi.service.packageadmin; version=1.2, \
org.osgi.service.resolver; version=1.1, \
org.osgi.service.startlevel; version=1.1, \
org.osgi.service.url; version=1.0, \
org.osgi.util.tracker; version=1.5.2, \
org.osgi.resource; version=1.0.1, \
org.osgi.resource.dto; version=1.0.1, \
org.osgi.service.packageadmin; version=1.2.1, \
org.osgi.service.resolver; version=1.1.1, \
org.osgi.service.startlevel; version=1.1.1, \
org.osgi.service.url; version=1.0.1, \
org.osgi.util.tracker; version=1.5.3, \
${extra-system-packages}


Expand Down Expand Up @@ -548,38 +543,39 @@ felix.fileinstall.disableConfigSave=false
# If we don't set this, when we run our tests in embedded mode, gogo shell stops the framework after running the login command.
gosh.args=--nointeractive

# New-style generic execution environment capabilities.
#fix for GLASSFISH-21236
org.osgi.framework.system.capabilities= \
${eecap-${java.specification.version}}
#we are not adding eecap entries upto 1.7 as GF is supported for JDK>1.7 (?)
eecap-21= osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \
# Generic execution environment capabilities.
org.osgi.framework.system.capabilities=${eecap-${java.vm.specification.version}}

eecap-21= \
osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \
osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,9,10,11,12,13,14,15,16,17,18,19,20,21"
eecap-20= osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \
eecap-20= \
osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \
osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,9,10,11,12,13,14,15,16,17,18,19,20"
eecap-19= osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \
osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,9,10,11,12,13,14,15,16,17,18,19"
eecap-18= osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \
osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,9,10,11,12,13,14,15,16,17,18"
eecap-17= osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \
eecap-19= \
osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \
osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,9,10,11,12,13,14,15,16,17,18,19",
eecap-18= \
osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \
osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,9,10,11,12,13,14,15,16,17,18",
eecap-17= \
osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \
osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,9,10,11,12,13,14,15,16,17"
eecap-16= osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \
eecap-16= \
osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \
osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,9,10,11,12,13,14,15,16"
eecap-15= osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \
eecap-15= \
osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \
osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,9,10,11,12,13,14,15"
eecap-14= osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \
eecap-14= \
osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \
osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,9,10,11,12,13,14"
eecap-13= osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \
eecap-13= \
osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \
osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,9,10,11,12,13"
eecap-12= osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \
eecap-12= \
osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \
osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,9,10,11,12"
eecap-11= osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \
eecap-11= \
osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \
osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,9,10,11"
eecap-10= osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \
osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,9,10"
eecap-9= osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \
osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,9"
eecap-1.8= osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \
osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8"
eecap-1.7= osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \
osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7"
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@
<exclude>org.apache.felix.gogo.runtime.jar</exclude>
<exclude>org.apache.felix.gogo.shell.jar</exclude>
<exclude>org.apache.felix.scr.jar</exclude>
<exclude>org.osgi.util.function.jar</exclude>
<exclude>org.osgi.util.promise.jar</exclude>
<exclude>grizzly-npn-api.jar</exclude>
<exclude>felix.jar</exclude>
<exclude>nucleus-domain.jar</exclude>
Expand Down
21 changes: 1 addition & 20 deletions nucleus/featuresets/atomic/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
</exclusion>
</exclusions>
</dependency>
<!-- We install fileinstall bundle which monitors modules dir and autodeploy dir for addition/removal/updation of
<!-- We install fileinstall bundle which monitors modules dir and autodeploy dir for addition/removal/updation of
bundles -->
<dependency>
<groupId>org.apache.felix</groupId>
Expand All @@ -109,25 +109,6 @@
</exclusion>
</exclusions>
</dependency>
<!-- Felix SCR always needs to be deployed as 3 bundles since 2.0.12 -->
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.scr</artifactId>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.util.promise</artifactId>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.util.function</artifactId>
</dependency>
<dependency>
<groupId>org.glassfish.main.osgi-platforms</groupId>
<artifactId>osgi-cli-remote</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion nucleus/hk2/hk2-config/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<instructions>
<Import-Package>
jakarta.validation.*;resolution:=optional;version="${jakarta.validation-api.version}",
org.hibernate.validator.*;resolution:=optional;version="[7.0.0,8.0.0)",
org.hibernate.validator.*;resolution:=optional;version="[8.0.0,9.0.0)",
org.jvnet.tiger_types;version=${project.version},
*
</Import-Package>
Expand Down
4 changes: 2 additions & 2 deletions nucleus/osgi-platforms/osgi-cli-interactive/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>jline</groupId>
<groupId>org.jline</groupId>
<artifactId>jline</artifactId>
<scope>provided</scope>
<optional>true</optional>
Expand All @@ -71,7 +71,7 @@
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<artifactItems>
<artifactItem>
<groupId>jline</groupId>
<groupId>org.jline</groupId>
<artifactId>jline</artifactId>
<overWrite>true</overWrite>
</artifactItem>
Expand Down
Loading

0 comments on commit 00bbae0

Please sign in to comment.