mvnizer 0.6.1 → 1.0.0
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/.gitignore +52 -0
- data/.travis.yml +4 -2
- data/CHANGELOG.org +33 -0
- data/Dockerfile +19 -0
- data/Gemfile +10 -13
- data/Gemfile.lock +43 -104
- data/README.org +12 -9
- data/Rakefile +4 -24
- data/conf/default.yml +2 -2
- data/lib/mvnizer/coordinate_parser.rb +1 -1
- data/lib/mvnizer/templates/pom.xml.erb +1 -1
- data/lib/mvnizer/version.rb +1 -1
- data/mvnizer.gemspec +17 -109
- metadata +7 -134
- data/features/new_project.feature +0 -39
- data/features/search_artefact.feature +0 -14
- data/features/step_definitions/pom_steps.rb +0 -18
- data/features/support/env.rb +0 -24
- data/spec/commands/add_dependency_spec.rb +0 -25
- data/spec/commands/new_project_spec.rb +0 -38
- data/spec/commands/new_war_project_spec.rb +0 -58
- data/spec/commands/project_factory_spec.rb +0 -22
- data/spec/commands/search_artefact_spec.rb +0 -94
- data/spec/configuration_spec.rb +0 -28
- data/spec/coordinate_parser_spec.rb +0 -92
- data/spec/dummy.txt.erb +0 -1
- data/spec/dummy_pom.xml +0 -30
- data/spec/mvnize_spec.rb +0 -100
- data/spec/project_spec.rb +0 -29
- data/spec/spec_helper.rb +0 -11
- data/spec/task_helper_spec.rb +0 -66
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0d9b59c73bde4526206e7b323d96a2768ce13e5b80154603f3c3593e7f072278
|
|
4
|
+
data.tar.gz: 27ec3cce9384ff3a04ec3acf93e0376f179ad7d0dbc71a4f0def6fe64bd9bdd8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 54089cc2d7dfd584ff79ca57a1ed26fbb335f133414d7d27bc2f728430d5819a12453f522038f4856aca054d1f37532b5125b3e9037389bf5f3e030245879f83
|
|
7
|
+
data.tar.gz: e2dc029f58f105e3d29b827954e49bca5cc97ac90e644313bf141c5b5c77030f0865a1c378431a2e4fc53241d23b926d353efc7b22ec740346d153f174bf54e4
|
data/.gitignore
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# rcov generated
|
|
2
|
+
coverage
|
|
3
|
+
coverage.data
|
|
4
|
+
|
|
5
|
+
# rdoc generated
|
|
6
|
+
rdoc
|
|
7
|
+
|
|
8
|
+
# yard generated
|
|
9
|
+
doc
|
|
10
|
+
.yardoc
|
|
11
|
+
|
|
12
|
+
# bundler
|
|
13
|
+
.bundle
|
|
14
|
+
|
|
15
|
+
# jeweler generated
|
|
16
|
+
pkg
|
|
17
|
+
|
|
18
|
+
# aruba test folder
|
|
19
|
+
tmp
|
|
20
|
+
|
|
21
|
+
# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
|
|
22
|
+
#
|
|
23
|
+
# * Create a file at ~/.gitignore
|
|
24
|
+
# * Include files you want ignored
|
|
25
|
+
# * Run: git config --global core.excludesfile ~/.gitignore
|
|
26
|
+
#
|
|
27
|
+
# After doing this, these files will be ignored in all your git projects,
|
|
28
|
+
# saving you from having to 'pollute' every project you touch with them
|
|
29
|
+
#
|
|
30
|
+
# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
|
|
31
|
+
#
|
|
32
|
+
# For MacOS:
|
|
33
|
+
#
|
|
34
|
+
#.DS_Store
|
|
35
|
+
|
|
36
|
+
# For TextMate
|
|
37
|
+
#*.tmproj
|
|
38
|
+
#tmtags
|
|
39
|
+
|
|
40
|
+
# For emacs:
|
|
41
|
+
*~
|
|
42
|
+
\#*
|
|
43
|
+
.\#*
|
|
44
|
+
|
|
45
|
+
# For vim:
|
|
46
|
+
#*.swp
|
|
47
|
+
|
|
48
|
+
# For redcar:
|
|
49
|
+
#.redcar
|
|
50
|
+
|
|
51
|
+
# For rubinius:
|
|
52
|
+
#*.rbc
|
data/.travis.yml
CHANGED
data/CHANGELOG.org
CHANGED
|
@@ -1,3 +1,36 @@
|
|
|
1
|
+
* Mvnizer 1.0.0
|
|
2
|
+
|
|
3
|
+
- Release of major version!
|
|
4
|
+
|
|
5
|
+
* Mvnizer 0.11.0
|
|
6
|
+
|
|
7
|
+
- Update mvnizer to be used with ruby 2.7.0
|
|
8
|
+
- Remove dependency on jeweler
|
|
9
|
+
|
|
10
|
+
* Mvnizer 0.10.0
|
|
11
|
+
|
|
12
|
+
- Update default junit version to 5.7.0
|
|
13
|
+
- Update maven compiler plugin to 3.8.1
|
|
14
|
+
|
|
15
|
+
* Mvnizer 0.9.0
|
|
16
|
+
|
|
17
|
+
- Update rack dependency version.
|
|
18
|
+
|
|
19
|
+
* Mvnizer 0.8.0
|
|
20
|
+
|
|
21
|
+
- Update dependencies version.
|
|
22
|
+
|
|
23
|
+
* Mvnizer 0.7.0
|
|
24
|
+
|
|
25
|
+
- Update dependencies version.
|
|
26
|
+
|
|
27
|
+
* Mvnizer 0.6.0
|
|
28
|
+
|
|
29
|
+
- Maven plugins support,
|
|
30
|
+
- Update dependencies version.
|
|
31
|
+
- Add support for Maven plugins
|
|
32
|
+
- Set ruby 2.3.0 as minimum version
|
|
33
|
+
|
|
1
34
|
* Mvnizer 0.5.0
|
|
2
35
|
|
|
3
36
|
- Fix generated Servlet to work with recent Jetty.
|
data/Dockerfile
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Dockerfile to compile and release gem.
|
|
2
|
+
|
|
3
|
+
FROM ubuntu:18.04
|
|
4
|
+
|
|
5
|
+
ARG DEBIAN_FRONTEND=noninteractive
|
|
6
|
+
RUN apt-get update -q && \
|
|
7
|
+
apt-get install -qy gpg gnupg-agent software-properties-common openssh-client && \
|
|
8
|
+
apt-add-repository -y ppa:rael-gc/rvm && \
|
|
9
|
+
apt-get update -q && \
|
|
10
|
+
apt-get install -qy git vim rvm --no-install-recommends && \
|
|
11
|
+
apt-get clean
|
|
12
|
+
|
|
13
|
+
RUN /bin/bash -l -c "rvm autolibs packages && rvm install 2.3.8"
|
|
14
|
+
RUN /bin/bash -l -c "gem update --system && gem install bundler"
|
|
15
|
+
|
|
16
|
+
# To run:
|
|
17
|
+
# docker run -t -i -v $(pwd):/mvnizer mvnizer-build:latest /bin/bash
|
|
18
|
+
|
|
19
|
+
ENTRYPOINT ["/bin/bash", "-l", "-c"]
|
data/Gemfile
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
source '
|
|
1
|
+
source 'https://rubygems.org'
|
|
2
2
|
|
|
3
|
-
ruby ">= 2.
|
|
3
|
+
ruby ">= 2.7.0"
|
|
4
4
|
|
|
5
|
-
gem 'httparty', '~> 0.
|
|
6
|
-
gem 'nokogiri', '~> 1.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
# removed `last_comment` in rspec.
|
|
10
|
-
gem 'rake', '< 11.0'
|
|
5
|
+
gem 'httparty', '~> 0.17'
|
|
6
|
+
gem 'nokogiri', '~> 1.11'
|
|
7
|
+
gem 'rake', '~> 13.0'
|
|
8
|
+
gem 'rake-release'
|
|
11
9
|
|
|
12
10
|
group :development do
|
|
13
|
-
gem 'rspec', '~>
|
|
14
|
-
gem 'rspec-mocks', '~>
|
|
15
|
-
gem 'fakefs', '~> 0.14
|
|
16
|
-
gem '
|
|
17
|
-
gem 'aruba', '~> 0.14.5'
|
|
11
|
+
gem 'rspec', '~> 3.10.0'
|
|
12
|
+
gem 'rspec-mocks', '~> 3.10.0'
|
|
13
|
+
gem 'fakefs', '~> 0.14'
|
|
14
|
+
# gem 'aruba', '~> 0.14'
|
|
18
15
|
end
|
data/Gemfile.lock
CHANGED
|
@@ -1,116 +1,55 @@
|
|
|
1
1
|
GEM
|
|
2
|
-
remote:
|
|
2
|
+
remote: https://rubygems.org/
|
|
3
3
|
specs:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
cucumber (>= 1.3.19)
|
|
9
|
-
ffi (~> 1.9.10)
|
|
10
|
-
rspec-expectations (>= 2.99)
|
|
11
|
-
thor (~> 0.19)
|
|
12
|
-
backports (3.11.4)
|
|
13
|
-
builder (3.2.3)
|
|
14
|
-
childprocess (0.9.0)
|
|
15
|
-
ffi (~> 1.0, >= 1.0.11)
|
|
16
|
-
contracts (0.16.0)
|
|
17
|
-
cucumber (3.1.2)
|
|
18
|
-
builder (>= 2.1.2)
|
|
19
|
-
cucumber-core (~> 3.2.0)
|
|
20
|
-
cucumber-expressions (~> 6.0.1)
|
|
21
|
-
cucumber-wire (~> 0.0.1)
|
|
22
|
-
diff-lcs (~> 1.3)
|
|
23
|
-
gherkin (~> 5.1.0)
|
|
24
|
-
multi_json (>= 1.7.5, < 2.0)
|
|
25
|
-
multi_test (>= 0.1.2)
|
|
26
|
-
cucumber-core (3.2.1)
|
|
27
|
-
backports (>= 3.8.0)
|
|
28
|
-
cucumber-tag_expressions (~> 1.1.0)
|
|
29
|
-
gherkin (~> 5.0)
|
|
30
|
-
cucumber-expressions (6.0.1)
|
|
31
|
-
cucumber-tag_expressions (1.1.1)
|
|
32
|
-
cucumber-wire (0.0.1)
|
|
33
|
-
descendants_tracker (0.0.4)
|
|
34
|
-
thread_safe (~> 0.3, >= 0.3.1)
|
|
35
|
-
diff-lcs (1.3)
|
|
36
|
-
fakefs (0.14.3)
|
|
37
|
-
faraday (0.9.2)
|
|
38
|
-
multipart-post (>= 1.2, < 3)
|
|
39
|
-
ffi (1.9.25)
|
|
40
|
-
ffi (1.9.25-java)
|
|
41
|
-
gherkin (5.1.0)
|
|
42
|
-
git (1.5.0)
|
|
43
|
-
github_api (0.16.0)
|
|
44
|
-
addressable (~> 2.4.0)
|
|
45
|
-
descendants_tracker (~> 0.0.4)
|
|
46
|
-
faraday (~> 0.8, < 0.10)
|
|
47
|
-
hashie (>= 3.4)
|
|
48
|
-
mime-types (>= 1.16, < 3.0)
|
|
49
|
-
oauth2 (~> 1.0)
|
|
50
|
-
hashie (3.6.0)
|
|
51
|
-
highline (2.0.0)
|
|
52
|
-
httparty (0.16.2)
|
|
4
|
+
diff-lcs (1.4.4)
|
|
5
|
+
fakefs (0.20.1)
|
|
6
|
+
httparty (0.18.1)
|
|
7
|
+
mime-types (~> 3.0)
|
|
53
8
|
multi_xml (>= 0.5.2)
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
git (>= 1.2.5)
|
|
59
|
-
github_api (~> 0.16.0)
|
|
60
|
-
highline (>= 1.6.15)
|
|
61
|
-
nokogiri (>= 1.5.10)
|
|
62
|
-
psych
|
|
63
|
-
rake
|
|
64
|
-
rdoc
|
|
65
|
-
semver2
|
|
66
|
-
jwt (2.1.0)
|
|
67
|
-
mime-types (2.99.3)
|
|
68
|
-
mini_portile2 (2.3.0)
|
|
69
|
-
multi_json (1.13.1)
|
|
70
|
-
multi_test (0.1.2)
|
|
9
|
+
mime-types (3.3.1)
|
|
10
|
+
mime-types-data (~> 3.2015)
|
|
11
|
+
mime-types-data (3.2021.0225)
|
|
12
|
+
mini_portile2 (2.5.1)
|
|
71
13
|
multi_xml (0.6.0)
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
nokogiri (1.
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
rspec (
|
|
89
|
-
|
|
90
|
-
rspec-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
rspec-mocks (2.99.4)
|
|
96
|
-
semver2 (3.4.2)
|
|
97
|
-
thor (0.20.0)
|
|
98
|
-
thread_safe (0.3.6)
|
|
99
|
-
thread_safe (0.3.6-java)
|
|
14
|
+
nokogiri (1.11.4)
|
|
15
|
+
mini_portile2 (~> 2.5.0)
|
|
16
|
+
racc (~> 1.4)
|
|
17
|
+
nokogiri (1.11.4-java)
|
|
18
|
+
racc (~> 1.4)
|
|
19
|
+
racc (1.5.2)
|
|
20
|
+
racc (1.5.2-java)
|
|
21
|
+
rake (13.0.3)
|
|
22
|
+
rake-release (1.3.0)
|
|
23
|
+
bundler (>= 1.11, < 3)
|
|
24
|
+
rspec (3.10.0)
|
|
25
|
+
rspec-core (~> 3.10.0)
|
|
26
|
+
rspec-expectations (~> 3.10.0)
|
|
27
|
+
rspec-mocks (~> 3.10.0)
|
|
28
|
+
rspec-core (3.10.1)
|
|
29
|
+
rspec-support (~> 3.10.0)
|
|
30
|
+
rspec-expectations (3.10.1)
|
|
31
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
32
|
+
rspec-support (~> 3.10.0)
|
|
33
|
+
rspec-mocks (3.10.2)
|
|
34
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
35
|
+
rspec-support (~> 3.10.0)
|
|
36
|
+
rspec-support (3.10.2)
|
|
100
37
|
|
|
101
38
|
PLATFORMS
|
|
102
39
|
java
|
|
103
40
|
ruby
|
|
104
41
|
|
|
105
42
|
DEPENDENCIES
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
rspec (~>
|
|
113
|
-
|
|
43
|
+
fakefs (~> 0.14)
|
|
44
|
+
httparty (~> 0.17)
|
|
45
|
+
nokogiri (~> 1.11)
|
|
46
|
+
rake (~> 13.0)
|
|
47
|
+
rake-release
|
|
48
|
+
rspec (~> 3.10.0)
|
|
49
|
+
rspec-mocks (~> 3.10.0)
|
|
50
|
+
|
|
51
|
+
RUBY VERSION
|
|
52
|
+
ruby 2.7.0p0
|
|
114
53
|
|
|
115
54
|
BUNDLED WITH
|
|
116
|
-
1.
|
|
55
|
+
2.1.4
|
data/README.org
CHANGED
|
@@ -44,12 +44,14 @@ Here are some examples of valid commands:
|
|
|
44
44
|
#+BEGIN_EXAMPLE
|
|
45
45
|
mvnizer new foo
|
|
46
46
|
mvnizer new foo:war
|
|
47
|
-
mvnizer new foo:1.0:war
|
|
47
|
+
mvnizer new foo:1.0.0:war
|
|
48
48
|
mvnizer new com.example:foo
|
|
49
49
|
mvnizer new com.example:foo:war
|
|
50
|
-
mvnizer new com.example:foo:1.0:war
|
|
50
|
+
mvnizer new com.example:foo:1.0.0:war
|
|
51
51
|
#+END_EXAMPLE
|
|
52
52
|
|
|
53
|
+
The version *must* be of the form =major.minor.patch-classifier=.
|
|
54
|
+
|
|
53
55
|
*** WAR Project
|
|
54
56
|
|
|
55
57
|
If the type of project generated is =war=, a servlet
|
|
@@ -66,11 +68,12 @@ mvn org.eclipse.jetty:jetty-maven-plugin:9.4.12.v20180830:run-war
|
|
|
66
68
|
|
|
67
69
|
** Add Dependency
|
|
68
70
|
|
|
69
|
-
To add dependencies, you must be in the folder where the pom file
|
|
70
|
-
want to add the dependency to is.
|
|
71
|
+
To add dependencies, you must be in the folder where the pom file
|
|
72
|
+
you want to add the dependency to is.
|
|
71
73
|
|
|
72
|
-
To add a dependency, simply pass the coordinates of the dependency,
|
|
73
|
-
add scope if needed (if no scope is given, =compile= is
|
|
74
|
+
To add a dependency, simply pass the coordinates of the dependency,
|
|
75
|
+
and add scope if needed (if no scope is given, =compile= is
|
|
76
|
+
assumed):
|
|
74
77
|
|
|
75
78
|
#+BEGIN_EXAMPLE
|
|
76
79
|
mvnizer add org.apache.commons:commons-lang3:3.1:jar
|
|
@@ -82,8 +85,8 @@ dependencies for you.
|
|
|
82
85
|
|
|
83
86
|
** Dependency Search
|
|
84
87
|
|
|
85
|
-
You can search for dependencies in the Maven central repository with
|
|
86
|
-
command:
|
|
88
|
+
You can search for dependencies in the Maven central repository with
|
|
89
|
+
the command:
|
|
87
90
|
|
|
88
91
|
#+BEGIN_EXAMPLE
|
|
89
92
|
$ mvnizer search <text>
|
|
@@ -93,4 +96,4 @@ command:
|
|
|
93
96
|
|
|
94
97
|
MIT License.
|
|
95
98
|
|
|
96
|
-
© Copyright 2012–
|
|
99
|
+
© Copyright 2012–2021 — Sébastien Le Callonnec
|
data/Rakefile
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
1
|
+
# coding: utf-8
|
|
3
2
|
require 'rubygems'
|
|
4
3
|
require 'bundler'
|
|
4
|
+
require 'rake/release'
|
|
5
|
+
|
|
5
6
|
begin
|
|
6
7
|
Bundler.setup(:default, :development)
|
|
7
8
|
rescue Bundler::BundlerError => e
|
|
@@ -11,25 +12,6 @@ rescue Bundler::BundlerError => e
|
|
|
11
12
|
end
|
|
12
13
|
require 'rake'
|
|
13
14
|
|
|
14
|
-
require 'jeweler'
|
|
15
|
-
require './lib/mvnizer/version.rb'
|
|
16
|
-
Jeweler::Tasks.new do |gem|
|
|
17
|
-
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
|
18
|
-
gem.name = "mvnizer"
|
|
19
|
-
gem.version = Mvnizer::Version::STRING
|
|
20
|
-
gem.homepage = "http://github.com/tychobrailleur/mvnizer"
|
|
21
|
-
gem.license = "MIT"
|
|
22
|
-
gem.summary = %Q{Bootstrap a Maven project without the pain of archetypes.}
|
|
23
|
-
gem.description = %Q{Bootstrap a Maven project without the pain of archetypes.}
|
|
24
|
-
gem.email = "sebastien@weblogism.com"
|
|
25
|
-
gem.authors = ["Sébastien Le Callonnec"]
|
|
26
|
-
|
|
27
|
-
gem.executables = ['mvnizer']
|
|
28
|
-
# dependencies defined in Gemfile
|
|
29
|
-
end
|
|
30
|
-
Jeweler::RubygemsDotOrgTasks.new
|
|
31
|
-
|
|
32
|
-
require 'rspec/core'
|
|
33
15
|
require 'rspec/core/rake_task'
|
|
34
16
|
RSpec::Core::RakeTask.new(:spec) do |spec|
|
|
35
17
|
spec.pattern = FileList['spec/**/*_spec.rb']
|
|
@@ -47,9 +29,7 @@ Rake::RDocTask.new do |rdoc|
|
|
|
47
29
|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
|
48
30
|
|
|
49
31
|
rdoc.rdoc_dir = 'rdoc'
|
|
50
|
-
rdoc.title = "
|
|
32
|
+
rdoc.title = "mvnizer #{version}"
|
|
51
33
|
rdoc.rdoc_files.include('README*')
|
|
52
34
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
|
53
35
|
end
|
|
54
|
-
|
|
55
|
-
# -*- coding: utf-8 -*-
|
data/conf/default.yml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
group_id: com.example
|
|
2
2
|
version: 0.0.1-SNAPSHOT
|
|
3
3
|
type: jar
|
|
4
|
-
dependencies: [ "junit:junit:
|
|
5
|
-
plugins: [ ":maven-compiler-plugin:3.8.
|
|
4
|
+
dependencies: [ "org.junit.jupiter:junit-jupiter-engine:5.7.0:jar:test" ]
|
|
5
|
+
plugins: [ ":maven-compiler-plugin:3.8.1" ]
|