Skip to content

Commit

Permalink
Merge pull request #7555 from enonic/issue-7374
Browse files Browse the repository at this point in the history
Update OSGi to version 7 #7374
  • Loading branch information
GlennRicaud authored Oct 29, 2019
2 parents 639f152 + ae8e9db commit 1f36c53
Show file tree
Hide file tree
Showing 17 changed files with 32 additions and 420 deletions.
2 changes: 1 addition & 1 deletion buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repositories {
}

dependencies {
compile 'biz.aQute.bnd:biz.aQute.bnd.gradle:4.2.0'
compile 'biz.aQute.bnd:biz.aQute.bnd.gradle:4.3.0'
compile 'com.moowork.gradle:gradle-node-plugin:1.0.1'
compile 'org.eclipse.jgit:org.eclipse.jgit:3.7.0.201502260915-r'
compile 'com.gradle.publish:plugin-publish-plugin:0.9.3'
Expand Down
2 changes: 1 addition & 1 deletion gradle/java.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ configurations {
}

ext {
felixVersion = '6.0.1'
felixVersion = '6.0.3'
jettyVersion = '9.4.21.v20190926'
}

Expand Down
4 changes: 2 additions & 2 deletions modules/core/core-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ dependencies {
compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.6'
compile 'org.jparsec:jparsec:3.1'
compile 'commons-io:commons-io:2.4'
compile 'org.osgi:osgi.core:6.0.0'
compile 'org.osgi:osgi.cmpn:6.0.0'
compile 'org.osgi:osgi.core:7.0.0'
compile 'org.osgi:osgi.cmpn:7.0.0'
compile 'org.slf4j:slf4j-api:1.7.25'
compile 'javax.mail:mail:1.4.7'
compile 'io.dropwizard.metrics:metrics-core:3.1.2'
Expand Down
11 changes: 4 additions & 7 deletions modules/launcher/launcher-impl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@ dependencies {
compile 'org.osgi:osgi.core:7.0.0'
compile 'org.osgi:osgi.cmpn:7.0.0'
compile "org.apache.felix:org.apache.felix.framework:${felixVersion}"
compile( 'org.apache.felix:org.apache.felix.utils:1.11.0' ) {
transitive = false
}
runtimeOnly 'org.apache.felix:org.apache.felix.logback:1.0.2'
compile 'org.apache.felix:org.apache.felix.utils:1.11.2'
compile 'commons-io:commons-io:2.4'
compile 'ch.qos.logback:logback-classic:1.2.3'
compile 'org.slf4j:jul-to-slf4j:1.7.25'
compile 'org.slf4j:jcl-over-slf4j:1.7.25'
compile 'org.slf4j:log4j-over-slf4j:1.7.25'
runtimeOnly 'ch.qos.logback:logback-classic:1.2.3'
compile 'org.slf4j:slf4j-api:1.7.25'
compile 'org.fusesource.jansi:jansi:1.11'
compile 'javax.mail:mail:1.4.7'
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
import com.enonic.xp.launcher.impl.env.RequirementChecker;
import com.enonic.xp.launcher.impl.env.SystemProperties;
import com.enonic.xp.launcher.impl.framework.FrameworkService;
import com.enonic.xp.launcher.impl.logging.LogActivator;
import com.enonic.xp.launcher.impl.logging.LogConfigurator;
import com.enonic.xp.launcher.impl.provision.ProvisionActivator;
import com.enonic.xp.launcher.impl.util.BannerPrinter;

Expand Down Expand Up @@ -82,28 +80,15 @@ private void applyConfigToSystemProperties()
}
}

private void setupLogging()
{
final LogConfigurator configurator = new LogConfigurator( this.env );
configurator.configure();
}

private void createFramework()
{
this.framework = new FrameworkService();
this.framework.listener( this.listener );
this.framework.config( this.config );

addLogActivator();
addProvisionActivator();
}

private void addLogActivator()
{
final LogActivator activator = new LogActivator();
this.framework.activator( activator );
}

private void addProvisionActivator()
{
final File systemDir = new File( this.env.getInstallDir(), "system" );
Expand All @@ -117,7 +102,6 @@ public void start()
{
resolveEnv();
printBanner();
setupLogging();
loadConfiguration();
applyConfigToSystemProperties();
createFramework();
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ xp.osgi.startlevel.bundle = 60
# Log settings
#
felix.log.level = 1
logback.configurationFile=${xp.home}/config/logback.xml

#
# Configuration FileMonitor properties
Expand Down

This file was deleted.

Loading

0 comments on commit 1f36c53

Please sign in to comment.