tetra 2.0.0 → 2.0.1
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 +7 -0
- data/LICENSE +2 -2
- data/SPECIAL_CASES.md +60 -6
- data/lib/template/bashrc +2 -2
- data/lib/tetra/version.rb +1 -1
- metadata +25 -43
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 37e5b4135d189ba761e68a98ae07aec63d93e053
|
4
|
+
data.tar.gz: 1a132dc4444339c07c0ec2477f4e0c7a12672415
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 932ad6780932755bdac161abddb35280c3823a1899745d7b09f3c17fd288f3726b2e6bfa53c731e281ed1b18a8bdce2a51f24379405069abe95349601f090af3
|
7
|
+
data.tar.gz: 2d86217da6917468f36dc6af70bd868ab239ecdba966a83ec8865bd40b44b92023525a4223411717d1cf4cb2ec0b699fc08846e0e3c140156402904addea158e
|
data/LICENSE
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright (c)
|
1
|
+
Copyright (c) 2015 SUSE LLC
|
2
2
|
All rights reserved.
|
3
3
|
|
4
4
|
Redistribution and use in source and binary forms, with or without
|
@@ -11,7 +11,7 @@ notice, this list of conditions and the following disclaimer.
|
|
11
11
|
copyright notice, this list of conditions and the following disclaimer
|
12
12
|
in the documentation and/or other materials provided with the
|
13
13
|
distribution.
|
14
|
-
* Neither the name of
|
14
|
+
* Neither the name of SUSE LLC nor the names of its
|
15
15
|
contributors may be used to endorse or promote products derived from
|
16
16
|
this software without specific prior written permission.
|
17
17
|
|
data/SPECIAL_CASES.md
CHANGED
@@ -38,6 +38,48 @@ When generating spec files, it helps to have a `pom.xml` in your package directo
|
|
38
38
|
|
39
39
|
You can also ask `tetra` to find one via `tetra get-pom <filename>.jar`.
|
40
40
|
|
41
|
+
## Maven: only build a subset of a multi-module project
|
42
|
+
|
43
|
+
Maven has the ability of treating complex projects as multi-module sub-projects with an independent life cycle and `pom.xml` file (this is called Maven's Reactor).
|
44
|
+
|
45
|
+
You might be interested in building only a part of a multi-module project for your package, you can accomplish that by adding:
|
46
|
+
```
|
47
|
+
--projects project-name1,project-name2
|
48
|
+
```
|
49
|
+
|
50
|
+
To your `mvn` commandline during dry-runs. Note that any depenedencies between modules are not automatically resolved, so you will have to pass to `--projects` all of the dependend projects manually.
|
51
|
+
|
52
|
+
## Maven: add or override repositories
|
53
|
+
|
54
|
+
You might want to supply a different set of Maven repositories to a project, for example in case URLs changed since the `pom.xml` file was written. In order to do that, add the following section to `kit/m2/settings.xml`:
|
55
|
+
|
56
|
+
```xml
|
57
|
+
<profiles>
|
58
|
+
<profile>
|
59
|
+
<id>repos</id>
|
60
|
+
<repositories>
|
61
|
+
<!-- Add Maven Central -->
|
62
|
+
<repository>
|
63
|
+
<id>central</id>
|
64
|
+
<url>https://repo1.maven.org/maven2/</url>
|
65
|
+
<releases>
|
66
|
+
<enabled>true</enabled>
|
67
|
+
</releases>
|
68
|
+
<snapshots>
|
69
|
+
<enabled>true</enabled>
|
70
|
+
</snapshots>
|
71
|
+
</repository>
|
72
|
+
</repositories>
|
73
|
+
</profile>
|
74
|
+
</profiles>
|
75
|
+
|
76
|
+
<activeProfiles>
|
77
|
+
<activeProfile>repos</activeProfile>
|
78
|
+
</activeProfiles>
|
79
|
+
```
|
80
|
+
|
81
|
+
Plugin repositories can be added via `<pluginRepositories>` and `<pluginRepository>` tags in `<profile>` as well.
|
82
|
+
|
41
83
|
## Use different Ant or Maven versions
|
42
84
|
|
43
85
|
In case the bundled Ant or Maven versions are not usable in your project for whatever reason and you want to bundle a different one, just remove their directories from `kit` and replace them with your own. `tetra` will look for binaries named `ant` or `mvn` in kit and use them wherever they are found.
|
@@ -71,15 +113,27 @@ Instructions:
|
|
71
113
|
|
72
114
|
Assuming your project uses the [Gradle Wrapper](http://gradle.org/docs/current/userguide/gradle_wrapper.html);
|
73
115
|
|
74
|
-
* during your dry-run build, add the `--gradle-user-home /tmp/gradle --project-cache-dir /tmp/gradle-project` commandline options to `gradlew` in order to download files in the `/tmp` directory instead of your home
|
116
|
+
* during your dry-run build, add the `--gradle-user-home /tmp/gradle --project-cache-dir /tmp/gradle-project` commandline options to `gradlew` in order to download files in the `/tmp` directory instead of your home. Typically:
|
117
|
+
```
|
118
|
+
./gradlew --gradle-user-home /tmp/gradle --project-cache-dir /tmp/gradle-project clean build -x test
|
119
|
+
```
|
120
|
+
Note that gradle 1.6 has a bug and it will not honor the `--gradle-user-home` flag. Use instead:
|
121
|
+
```
|
122
|
+
export GRADLE_USER_HOME=/tmp/gradle
|
123
|
+
./gradlew --project-cache-dir /tmp/gradle-project --offline clean build -x test
|
124
|
+
```
|
125
|
+
|
75
126
|
* after the build has finished but prior ending the dry-run, copy all files to your kit with:
|
127
|
+
```
|
128
|
+
cp -r /tmp/gradle* ../../kit/
|
129
|
+
```
|
76
130
|
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
131
|
+
* after your build script is generated, add the following line to `build.sh` in order to restore files from `kit/` to `/tmp` before `gradlew` is called:
|
132
|
+
```
|
133
|
+
cp -r kit/* /tmp
|
134
|
+
```
|
81
135
|
|
82
|
-
* furthermore, add the `--
|
136
|
+
* furthermore, add the `--offline` commandline option to `gradlew` in `build.sh` to ensure the build will not need Internet access.
|
83
137
|
|
84
138
|
Note that you cannot put files in `kit/` directly because your build would break on relocation, see [GRADLE-2690](https://issues.gradle.org/browse/GRADLE-2690).
|
85
139
|
|
data/lib/template/bashrc
CHANGED
@@ -17,8 +17,8 @@ unset HISTTIMEFORMAT
|
|
17
17
|
HISTCONTROL=""
|
18
18
|
|
19
19
|
# change prompt
|
20
|
-
PS1="\
|
20
|
+
PS1="\[$(tput bold)\]\[\033[38;5;11m\]dry-running\[$(tput sgr0)\]\[$(tput sgr0)\]\[\033[38;5;15m\]:\w\\$ \[$(tput sgr0)\]"
|
21
21
|
|
22
22
|
# add default commandline switches
|
23
23
|
alias ant='<%= ant_commandline %>'
|
24
|
-
alias mvn='<%= mvn_commandline %>'
|
24
|
+
alias mvn='<%= mvn_commandline %>'
|
data/lib/tetra/version.rb
CHANGED
metadata
CHANGED
@@ -1,142 +1,125 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tetra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
5
|
-
prerelease:
|
4
|
+
version: 2.0.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Silvio Moioli
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2016-09-02 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rake
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rspec
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: aruba
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - ">="
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - ">="
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: clamp
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - ">="
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: '0'
|
70
62
|
type: :runtime
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - ">="
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: '0'
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: json_pure
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- -
|
73
|
+
- - ">="
|
84
74
|
- !ruby/object:Gem::Version
|
85
75
|
version: '0'
|
86
76
|
type: :runtime
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
|
-
- -
|
80
|
+
- - ">="
|
92
81
|
- !ruby/object:Gem::Version
|
93
82
|
version: '0'
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: open4
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
|
-
- -
|
87
|
+
- - ">="
|
100
88
|
- !ruby/object:Gem::Version
|
101
89
|
version: '0'
|
102
90
|
type: :runtime
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
|
-
- -
|
94
|
+
- - ">="
|
108
95
|
- !ruby/object:Gem::Version
|
109
96
|
version: '0'
|
110
97
|
- !ruby/object:Gem::Dependency
|
111
98
|
name: rubyzip
|
112
99
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
100
|
requirements:
|
115
|
-
- -
|
101
|
+
- - ">="
|
116
102
|
- !ruby/object:Gem::Version
|
117
103
|
version: '1.0'
|
118
104
|
type: :runtime
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
107
|
requirements:
|
123
|
-
- -
|
108
|
+
- - ">="
|
124
109
|
- !ruby/object:Gem::Version
|
125
110
|
version: '1.0'
|
126
111
|
- !ruby/object:Gem::Dependency
|
127
112
|
name: text
|
128
113
|
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
114
|
requirements:
|
131
|
-
- -
|
115
|
+
- - ">="
|
132
116
|
- !ruby/object:Gem::Version
|
133
117
|
version: '0'
|
134
118
|
type: :runtime
|
135
119
|
prerelease: false
|
136
120
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
121
|
requirements:
|
139
|
-
- -
|
122
|
+
- - ">="
|
140
123
|
- !ruby/object:Gem::Version
|
141
124
|
version: '0'
|
142
125
|
description: Tetra simplifies the creation of spec files and archives to distribute
|
@@ -148,8 +131,8 @@ executables:
|
|
148
131
|
extensions: []
|
149
132
|
extra_rdoc_files: []
|
150
133
|
files:
|
151
|
-
- .gitignore
|
152
|
-
- .rubocop.yml
|
134
|
+
- ".gitignore"
|
135
|
+
- ".rubocop.yml"
|
153
136
|
- CONTRIBUTING.md
|
154
137
|
- Gemfile
|
155
138
|
- Gemfile.lock
|
@@ -412,26 +395,25 @@ files:
|
|
412
395
|
homepage: https://github.com/SilvioMoioli/tetra
|
413
396
|
licenses:
|
414
397
|
- MIT
|
398
|
+
metadata: {}
|
415
399
|
post_install_message:
|
416
400
|
rdoc_options: []
|
417
401
|
require_paths:
|
418
402
|
- lib
|
419
403
|
required_ruby_version: !ruby/object:Gem::Requirement
|
420
|
-
none: false
|
421
404
|
requirements:
|
422
|
-
- -
|
405
|
+
- - ">="
|
423
406
|
- !ruby/object:Gem::Version
|
424
407
|
version: '0'
|
425
408
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
426
|
-
none: false
|
427
409
|
requirements:
|
428
|
-
- -
|
410
|
+
- - ">="
|
429
411
|
- !ruby/object:Gem::Version
|
430
412
|
version: '0'
|
431
413
|
requirements: []
|
432
414
|
rubyforge_project: tetra
|
433
|
-
rubygems_version:
|
415
|
+
rubygems_version: 2.5.1
|
434
416
|
signing_key:
|
435
|
-
specification_version:
|
417
|
+
specification_version: 4
|
436
418
|
summary: A tool to package Java projects
|
437
419
|
test_files: []
|