maven-tools 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/maven/tools/dsl.rb +1 -0
- data/lib/maven/tools/dsl/jarfile_lock.rb +5 -2
- data/lib/maven/tools/version.rb +1 -1
- data/spec/pom_from_jarfile_and_empty_lock/Jarfile +3 -0
- data/spec/pom_from_jarfile_and_empty_lock/pom.rb +5 -0
- data/spec/pom_from_jarfile_and_empty_lock/pom.xml +30 -0
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbf78be52e455a8af44a9d4e16c3b23f2c6edf9b
|
4
|
+
data.tar.gz: e171856084989ae3b92520fcbe208c9517ddf20d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd1bac1d3e1407f26fbd3acb4340e9a4569d6c2effb1d3a11ae0d3bdf697c87774d87e76a8cea8f5938f435401e710b93deb115ed48ebfa908d6fc9dbce03162
|
7
|
+
data.tar.gz: fb0eef80a2741896901ece8bb566aa8abc5558b8d291b2be8fca0e7d1d927945708a937389ae86782b29114ff5269341a7e8b57c02562a8a80d22891109fe575
|
data/lib/maven/tools/dsl.rb
CHANGED
@@ -335,6 +335,7 @@ module Maven
|
|
335
335
|
warn "DEPRECATED use filename instead"
|
336
336
|
file = jfile.file
|
337
337
|
end
|
338
|
+
file = ::File.join( basedir, file ) unless ::File.exists?( file )
|
338
339
|
dsl = Maven::Tools::DSL::Jarfile.new( @current, file, options[ :skip_lock ] )
|
339
340
|
|
340
341
|
# TODO this setup should be part of DSL::Jarfile
|
@@ -29,11 +29,14 @@ module Maven
|
|
29
29
|
@file = File.expand_path( jarfile + ".lock" ) if jarfile
|
30
30
|
if @file && File.exists?( @file )
|
31
31
|
lock = YAML.load( File.read( @file ) )
|
32
|
-
|
32
|
+
case lock
|
33
|
+
when Hash
|
33
34
|
@data = lock
|
34
|
-
|
35
|
+
when String
|
35
36
|
# fallback on old format and treat them all as "runtime"
|
36
37
|
data[ :runtime ] = lock.split( /\ / )
|
38
|
+
else
|
39
|
+
warn "unknown format of #{@file} - skip it"
|
37
40
|
end
|
38
41
|
end
|
39
42
|
end
|
data/lib/maven/tools/version.rb
CHANGED
@@ -0,0 +1,30 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!--
|
3
|
+
|
4
|
+
Copyright (c) 2012 to original author or authors
|
5
|
+
All rights reserved. This program and the accompanying materials
|
6
|
+
are made available under the terms of the Eclipse Public License v1.0
|
7
|
+
which accompanies this distribution, and is available at
|
8
|
+
http://www.eclipse.org/legal/epl-v10.html
|
9
|
+
|
10
|
+
-->
|
11
|
+
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
12
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
13
|
+
<modelVersion>4.0.0</modelVersion>
|
14
|
+
<groupId>no_group_id_given</groupId>
|
15
|
+
<artifactId>pom_from_jarfile_and_empty_lock</artifactId>
|
16
|
+
<version>0.0.0</version>
|
17
|
+
<name>example from jarfile</name>
|
18
|
+
<dependencies>
|
19
|
+
<dependency>
|
20
|
+
<groupId>junit</groupId>
|
21
|
+
<artifactId>junit</artifactId>
|
22
|
+
<version>[4.11,4.99999]</version>
|
23
|
+
</dependency>
|
24
|
+
<dependency>
|
25
|
+
<groupId>org.slf4j</groupId>
|
26
|
+
<artifactId>simple-slf4</artifactId>
|
27
|
+
<version>[1.6.4,1.6.99999]</version>
|
28
|
+
</dependency>
|
29
|
+
</dependencies>
|
30
|
+
</project>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maven-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Meier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: virtus
|
@@ -261,6 +261,9 @@ files:
|
|
261
261
|
- spec/pom_from_jarfile/Jarfile
|
262
262
|
- spec/pom_from_jarfile/pom.rb
|
263
263
|
- spec/pom_from_jarfile/pom.xml
|
264
|
+
- spec/pom_from_jarfile_and_empty_lock/Jarfile
|
265
|
+
- spec/pom_from_jarfile_and_empty_lock/pom.rb
|
266
|
+
- spec/pom_from_jarfile_and_empty_lock/pom.xml
|
264
267
|
- spec/pom_from_jarfile_and_lock/Jarfile
|
265
268
|
- spec/pom_from_jarfile_and_lock/pom.rb
|
266
269
|
- spec/pom_from_jarfile_and_lock/pom.xml
|
@@ -335,6 +338,7 @@ test_files:
|
|
335
338
|
- spec/pom_from_jarfile_with_exclusions/pom.rb
|
336
339
|
- spec/pom_from_jarfile_and_lock/pom.rb
|
337
340
|
- spec/pom_maven_hash_style/pom.rb
|
341
|
+
- spec/pom_from_jarfile_and_empty_lock/pom.rb
|
338
342
|
- spec/pom_from_jarfile_with_jruby/pom.rb
|
339
343
|
- spec/pom_from_jarfile_and_skip_lock/pom.rb
|
340
344
|
- spec/gemspec_in_profile/bouncy-castle-version.rb
|
@@ -390,6 +394,7 @@ test_files:
|
|
390
394
|
- spec/gemfile_with_groups_and_lockfile/pom.xml
|
391
395
|
- spec/gemfile_with_access_to_model/pom.xml
|
392
396
|
- spec/gemspec_with_source_and_custom_jarname/pom.xml
|
397
|
+
- spec/pom_from_jarfile_and_empty_lock/pom.xml
|
393
398
|
- spec/gemspec_with_custom_source/pom.xml
|
394
399
|
- spec/pom_from_jarfile_with_jruby/pom.xml
|
395
400
|
- spec/pom_from_jarfile_and_skip_lock/pom.xml
|
@@ -443,6 +448,7 @@ test_files:
|
|
443
448
|
- spec/gemfile_with_access_to_model/Mavenfile
|
444
449
|
- spec/gemfile_with_access_to_model/Gemfile
|
445
450
|
- spec/gemspec_with_source_and_custom_jarname/Mavenfile
|
451
|
+
- spec/pom_from_jarfile_and_empty_lock/Jarfile
|
446
452
|
- spec/gemspec_with_custom_source/Mavenfile
|
447
453
|
- spec/pom_from_jarfile_with_jruby/Jarfile
|
448
454
|
- spec/pom_from_jarfile_and_skip_lock/Jarfile
|