rspec/maven/tools/gem_project_spec.rb in maven-tools-0.32.4 vs rspec/maven/tools/gem_project_spec.rb in maven-tools-0.32.5

- old
+ new

@@ -84,19 +84,19 @@ <packaging>gem</packaging> <build> <plugins> <plugin> <groupId>de.saumya.mojo</groupId> - <artifactId>bundler-maven-plugin</artifactId> - </plugin> - <plugin> - <groupId>de.saumya.mojo</groupId> <artifactId>gem-maven-plugin</artifactId> <configuration> <gemspec>rspec/maven/tools/minimal.gemspec</gemspec> </configuration> </plugin> + <plugin> + <groupId>de.saumya.mojo</groupId> + <artifactId>bundler-maven-plugin</artifactId> + </plugin> </plugins> </build> </project> XML end @@ -145,19 +145,19 @@ </dependencies> <build> <plugins> <plugin> <groupId>de.saumya.mojo</groupId> - <artifactId>bundler-maven-plugin</artifactId> - </plugin> - <plugin> - <groupId>de.saumya.mojo</groupId> <artifactId>gem-maven-plugin</artifactId> <configuration> <gemspec>rspec/maven/tools/maven-tools.gemspec</gemspec> </configuration> </plugin> + <plugin> + <groupId>de.saumya.mojo</groupId> + <artifactId>bundler-maven-plugin</artifactId> + </plugin> </plugins> </build> </project> XML end @@ -280,19 +280,19 @@ </dependencyManagement> <build> <plugins> <plugin> <groupId>de.saumya.mojo</groupId> - <artifactId>bundler-maven-plugin</artifactId> - </plugin> - <plugin> - <groupId>de.saumya.mojo</groupId> <artifactId>gem-maven-plugin</artifactId> <configuration> <gemspec>rspec/maven/tools/maven-tools.gemspec</gemspec> </configuration> </plugin> + <plugin> + <groupId>de.saumya.mojo</groupId> + <artifactId>bundler-maven-plugin</artifactId> + </plugin> </plugins> </build> </project> XML end @@ -351,10 +351,21 @@ </plugin> </plugins> </build> <profiles> <profile> + <id>test</id> + <dependencies> + <dependency> + <groupId>rubygems</groupId> + <artifactId>dm-sqlite3-adapter</artifactId> + <version>[0.10.0,0.10.99999]</version> + <type>gem</type> + </dependency> + </dependencies> + </profile> + <profile> <id>development</id> <dependencies> <dependency> <groupId>rubygems</groupId> <artifactId>dm-mysql-adapter</artifactId> @@ -378,21 +389,10 @@ <version>[0.10.0,0.10.3)</version> <type>gem</type> </dependency> </dependencies> </profile> - <profile> - <id>test</id> - <dependencies> - <dependency> - <groupId>rubygems</groupId> - <artifactId>dm-sqlite3-adapter</artifactId> - <version>[0.10.0,0.10.99999]</version> - <type>gem</type> - </dependency> - </dependencies> - </profile> </profiles> </project> XML end @@ -437,14 +437,14 @@ <type>gem</type> </dependency> </dependencies> </dependencyManagement> <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <gem.home>${project.build.directory}/rubygems</gem.home> <gem.path>${project.build.directory}/rubygems</gem.path> <jruby.plugins.version>_project.version_</jruby.plugins.version> - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <build> <plugins> <plugin> <groupId>de.saumya.mojo</groupId> @@ -499,44 +499,78 @@ <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> - <action> - <ignore></ignore> - </action> <pluginExecutionFilter> + <groupId>de.saumya.mojo</groupId> <artifactId>bundler-maven-plugin</artifactId> + <versionRange>[0,)</versionRange> <goals> <goal>install</goal> </goals> - <groupId>de.saumya.mojo</groupId> - <versionRange>[0,)</versionRange> </pluginExecutionFilter> - </pluginExecution> - <pluginExecution> <action> <ignore></ignore> </action> + </pluginExecution> + <pluginExecution> <pluginExecutionFilter> + <groupId>de.saumya.mojo</groupId> <artifactId>gem-maven-plugin</artifactId> + <versionRange>[0,)</versionRange> <goals> <goal>initialize</goal> </goals> - <groupId>de.saumya.mojo</groupId> - <versionRange>[0,)</versionRange> </pluginExecutionFilter> + <action> + <ignore></ignore> + </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin> </plugins> </pluginManagement> </build> <profiles> <profile> + <id>test</id> + <dependencies> + <dependency> + <groupId>rubygems</groupId> + <artifactId>ixtlan-core</artifactId> + <version>[0,)</version> + <type>gem</type> + </dependency> + </dependencies> + </profile> + <profile> + <id>production</id> + <dependencies> + <dependency> + <groupId>rubygems</groupId> + <artifactId>ixtlan-core</artifactId> + <version>[0,)</version> + <type>gem</type> + </dependency> + <dependency> + <groupId>rubygems</groupId> + <artifactId>dm-mysql-adapter</artifactId> + <version>[1.0.0,1.0.3)</version> + <type>gem</type> + </dependency> + <dependency> + <groupId>rubygems</groupId> + <artifactId>dm-postgres-adapter</artifactId> + <version>[0,1.0.0]</version> + <type>gem</type> + </dependency> + </dependencies> + </profile> + <profile> <id>development</id> <dependencies> <dependency> <groupId>rubygems</groupId> <artifactId>dm-sqlite-adapter</artifactId> @@ -560,18 +594,18 @@ <plugins> <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>_assembly.version_</version> <configuration> + <descriptorRefs> + <descriptorRef>jar-with-dependencies-and-gems</descriptorRef> + </descriptorRefs> <archive> <manifest> <mainClass>de.saumya.mojo.assembly.Main</mainClass> </manifest> </archive> - <descriptorRefs> - <descriptorRef>jar-with-dependencies-and-gems</descriptorRef> - </descriptorRefs> </configuration> <executions> <execution> <id>in_phase_package</id> <phase>package</phase> @@ -590,44 +624,10 @@ </dependencies> </plugin> </plugins> </build> </profile> - <profile> - <id>production</id> - <dependencies> - <dependency> - <groupId>rubygems</groupId> - <artifactId>ixtlan-core</artifactId> - <version>[0,)</version> - <type>gem</type> - </dependency> - <dependency> - <groupId>rubygems</groupId> - <artifactId>dm-mysql-adapter</artifactId> - <version>[1.0.0,1.0.3)</version> - <type>gem</type> - </dependency> - <dependency> - <groupId>rubygems</groupId> - <artifactId>dm-postgres-adapter</artifactId> - <version>[0,1.0.0]</version> - <type>gem</type> - </dependency> - </dependencies> - </profile> - <profile> - <id>test</id> - <dependencies> - <dependency> - <groupId>rubygems</groupId> - <artifactId>ixtlan-core</artifactId> - <version>[0,)</version> - <type>gem</type> - </dependency> - </dependencies> - </profile> </profiles> </project> XML end @@ -895,18 +895,18 @@ <packaging>gem</packaging> <description><![CDATA[a no dependencies project to demonstrat how gemspec2pom works]]></description> <url>http://example.com</url> <developers> <developer> - <id>Me_And_The_Corner</id> - <name>Me And The Corner</name> - </developer> - <developer> <id>k_at_example_dot_com</id> <name>Krysh Sample</name> <email>k@example.com</email> </developer> + <developer> + <id>Me_And_The_Corner</id> + <name>Me And The Corner</name> + </developer> </developers> <licenses> <license> <name>AGPL</name> <url>./AGPL.txt</url> @@ -917,27 +917,27 @@ <plugins> <plugin> <groupId>de.saumya.mojo</groupId> <artifactId>gem-maven-plugin</artifactId> <configuration> + <gemspec>rspec/maven/tools/no-deps.gemspec</gemspec> <autorequire>my</autorequire> - <bindir>mybin</bindir> <defaultExecutable>myexe</defaultExecutable> - <executables>hello</executables> - <extensions>myext</extensions> + <testFiles>test/first_test.rb</testFiles> <extraRdocFiles>README.txt</extraRdocFiles> - <files>AGPL.txt,README.txt,test/first_test.rb,mybin/hello,myext,lib/first.rb,spec/first_spec.rb,features/first.feature</files> - <gemspec>rspec/maven/tools/no-deps.gemspec</gemspec> - <platform>java</platform> - <postInstallMessage><![CDATA[be happy]]></postInstallMessage> <rdocOptions>--main,README.txt</rdocOptions> <requirePaths>mylib</requirePaths> - <requiredRubyVersion><![CDATA[= 1.8.7]]></requiredRubyVersion> + <rubyforgeProject>myproject</rubyforgeProject> <requiredRubygemsVersion><![CDATA[= 1.4.2]]></requiredRubygemsVersion> + <bindir>mybin</bindir> + <requiredRubyVersion><![CDATA[= 1.8.7]]></requiredRubyVersion> + <postInstallMessage><![CDATA[be happy]]></postInstallMessage> + <executables>hello</executables> + <extensions>myext</extensions> + <platform>java</platform> + <files>AGPL.txt,README.txt,test/first_test.rb,mybin/hello,myext,lib/first.rb,spec/first_spec.rb,features/first.feature</files> <requirements>installed java</requirements> - <rubyforgeProject>myproject</rubyforgeProject> - <testFiles>test/first_test.rb</testFiles> </configuration> </plugin> </plugins> </build> </project> @@ -1014,14 +1014,14 @@ <id>rubygems-releases</id> <url>http://rubygems-proxy.torquebox.org/releases</url> </pluginRepository> </pluginRepositories> <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <gem.home>${project.build.directory}/rubygems</gem.home> <gem.path>${project.build.directory}/rubygems</gem.path> <jruby.plugins.version>_project.version_</jruby.plugins.version> - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <build> <plugins> <plugin> <groupId>de.saumya.mojo</groupId> @@ -1049,21 +1049,21 @@ <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> - <action> - <ignore></ignore> - </action> <pluginExecutionFilter> + <groupId>de.saumya.mojo</groupId> <artifactId>gem-maven-plugin</artifactId> + <versionRange>[0,)</versionRange> <goals> <goal>initialize</goal> </goals> - <groupId>de.saumya.mojo</groupId> - <versionRange>[0,)</versionRange> </pluginExecutionFilter> + <action> + <ignore></ignore> + </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin> @@ -1086,17 +1086,17 @@ <plugins> <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>_assembly.version_</version> <configuration> + <descriptorRefs> + <descriptorRef>jar-with-dependencies-and-gems</descriptorRef> + </descriptorRefs> <archive> <manifest> <mainClass>de.saumya.mojo.assembly.Main</mainClass> </manifest> </archive> - <descriptorRefs> - <descriptorRef>jar-with-dependencies-and-gems</descriptorRef> - </descriptorRefs> </configuration> <executions> <execution> <id>in_phase_package</id> <phase>package</phase>