Repository: servicemix-bundles Updated Branches: refs/heads/master 5a87d3338 -> dbae24bf5
SM-2926 - Create OSGi bundle for guice 4.0 Project: http://git-wip-us.apache.org/repos/asf/servicemix-bundles/repo Commit: http://git-wip-us.apache.org/repos/asf/servicemix-bundles/commit/dbae24bf Tree: http://git-wip-us.apache.org/repos/asf/servicemix-bundles/tree/dbae24bf Diff: http://git-wip-us.apache.org/repos/asf/servicemix-bundles/diff/dbae24bf Branch: refs/heads/master Commit: dbae24bf56101c43f67db308eb9c30a867aa6e11 Parents: 5a87d33 Author: Jean-Baptiste Onofré <[email protected]> Authored: Thu Mar 24 17:30:08 2016 +0100 Committer: Jean-Baptiste Onofré <[email protected]> Committed: Thu Mar 24 17:30:08 2016 +0100 ---------------------------------------------------------------------- guice-4.0/pom.xml | 109 +++++++++++++++++++ .../src/main/resources/OSGI-INF/bundle.info | 34 ++++++ pom.xml | 1 + 3 files changed, 144 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/servicemix-bundles/blob/dbae24bf/guice-4.0/pom.xml ---------------------------------------------------------------------- diff --git a/guice-4.0/pom.xml b/guice-4.0/pom.xml new file mode 100644 index 0000000..7d22b38 --- /dev/null +++ b/guice-4.0/pom.xml @@ -0,0 +1,109 @@ +<?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/xsd/maven-4.0.0.xsd"> + + <!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You 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 + + http://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. + --> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.servicemix.bundles</groupId> + <artifactId>bundles-pom</artifactId> + <version>12</version> + <relativePath>../bundles-pom/pom.xml</relativePath> + </parent> + + <groupId>org.apache.servicemix.bundles</groupId> + <artifactId>org.apache.servicemix.bundles.guice</artifactId> + <version>4.0_1-SNAPSHOT</version> + <packaging>bundle</packaging> + <name>Apache ServiceMix :: Bundles :: ${pkgArtifactId}</name> + <description>This OSGi bundle wraps guice ${pkgVersion} jar files.</description> + + <scm> + <connection>scm:git:https://git-wip-us.apache.org/repos/asf/servicemix-bundles.git</connection> + <developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/servicemix-bundles.git</developerConnection> + <url>https://git-wip-us.apache.org/repos/asf?p=servicemix-bundles.git</url> + <tag>HEAD</tag> + </scm> + + <properties> + <pkgGroupId>com.google.inject</pkgGroupId> + <pkgArtifactId>guice</pkgArtifactId> + <pkgVersion>4.0</pkgVersion> + <servicemix.osgi.export.pkg> + com.google.inject + </servicemix.osgi.export.pkg> + <servicemix.osgi.import.pkg> + javax.inject, + org.aopalliance*;version="[1.0,2)", + com.google.common*, + com.google.inject.internal.asm.util;resolution:=optional + </servicemix.osgi.import.pkg> + </properties> + + <dependencies> + <dependency> + <groupId>${pkgGroupId}</groupId> + <artifactId>${pkgArtifactId}</artifactId> + <version>${pkgVersion}</version> + </dependency> + + <!-- sources --> + <dependency> + <groupId>${pkgGroupId}</groupId> + <artifactId>${pkgArtifactId}</artifactId> + <version>${pkgVersion}</version> + <classifier>sources</classifier> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + <configuration> + <artifactSet> + <includes> + <include>${pkgGroupId}:${pkgArtifactId}</include> + </includes> + </artifactSet> + <filters> + <filter> + <artifact>${pkgGroupId}:${pkgArtifactId}</artifact> + <excludes> + <exclude>**/*</exclude> + </excludes> + </filter> + </filters> + <promoteTransitiveDependencies>true</promoteTransitiveDependencies> + <createDependencyReducedPom>true</createDependencyReducedPom> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> +</project> http://git-wip-us.apache.org/repos/asf/servicemix-bundles/blob/dbae24bf/guice-4.0/src/main/resources/OSGI-INF/bundle.info ---------------------------------------------------------------------- diff --git a/guice-4.0/src/main/resources/OSGI-INF/bundle.info b/guice-4.0/src/main/resources/OSGI-INF/bundle.info new file mode 100644 index 0000000..e4e11dc --- /dev/null +++ b/guice-4.0/src/main/resources/OSGI-INF/bundle.info @@ -0,0 +1,34 @@ +\u001B[1mSYNOPSIS\u001B[0m + ${project.description} + + Original Maven URL: + \u001B[33mmvn:http://guiceyfruit.googlecode.com/svn/repo/releases:${pkgGroupId}/guiceyfruit-core/${pkgVersion}\u001B[0m + \u001B[33mmvn:http://guiceyfruit.googlecode.com/svn/repo/releases:${pkgGroupId}/guice-all/${pkgVersion}\u001B[0m + +\u001B[1mDESCRIPTION\u001B[0m + Put simply, Guice alleviates the need for factories and the use of new + in your Java code. Think of Guice's @Inject as the new new. You will + still need to write factories in some cases, but your code will not depend + directly on them. Your code will be easier to change, unit test and reuse in + other contexts. + + Guice embraces Java's type safe nature, especially when it comes to features + introduced in Java 5 such as generics and annotations. You might think of + Guice as filling in missing features for core Java. Ideally, the language + itself would provide most of the same features, but until such a language + comes along, we have Guice. + + Guice helps you design better APIs, and the Guice API itself sets a good + example. Guice is not a kitchen sink. We justify each feature with at least + three use cases. When in doubt, we leave it out. We build general functionality + which enables you to extend Guice rather than adding every feature to the core + framework. + + Guice aims to make development and debugging easier and faster, not harder and + slower. In that vein, Guice steers clear of surprises and magic. You should be + able to understand code with or without tools, though tools can make things even + easier. When errors do occur, Guice goes the extra mile to generate helpful + messages. + +\u001B[1mSEE ALSO\u001B[0m + \u001B[36mhttp://code.google.com/p/google-guice/\u001B[0m http://git-wip-us.apache.org/repos/asf/servicemix-bundles/blob/dbae24bf/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 331d5c1..520e215 100644 --- a/pom.xml +++ b/pom.xml @@ -110,6 +110,7 @@ <module>spring-security-config-4.0.4.RELEASE</module> <module>spring-security-core-4.0.4.RELEASE</module> <module>spring-integration-core-4.2.5.RELEASE</module> + <module>guice-4.0</module> </modules> </project>
