buildr 1.4.18-java → 1.4.19-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTMxYzA0OWYzMmZhMGRjMmVjMDUwZjYxZjllZGNlMjZiZGJjMjk1MQ==
4
+ NjBlZTJjN2RkNTQ4YTMxZWJmYjNlMzE5MTQ5MjUwYTIzMGVmNDE3ZQ==
5
5
  data.tar.gz: !binary |-
6
- MzlkZGM3OGVhZThlY2Q1MGYwNmRiMWI0OTgzMWExZTk3Yzg5MDU0YQ==
6
+ NjFhYjVhMzE1MWNmMTIzYTc1MzM4ZmUwNGI2N2VkNDhmYjc0MmZlNw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- M2I0ZjgxMTEyNmY5NzM5ZTU2M2FlNGZjMjUzOGRjNGQ2OTA1NzM5YzA0MTc5
10
- Zjc1MmQ3OWRjNjVjYjNiYzA0YTY3ODQ3YmY2ZmVmZmRiMDUzN2Y3OGNjNzcz
11
- ZDE2ZjYyZGQ0MzcyMzdmNmI5NTA2NWE3NGM2NDExMDUwNWJmM2Q=
9
+ ZTdiOTZjNzRhNmI2ZjI3MWI2MWQ2ZWRmMjI5ZGZkZTQ3YTFlMTk3MjM4N2Qz
10
+ NTVlYWY5MTM1MGRiM2IwYWNmYmRkNDA1NWI2ODczNzI1MGI0MzI4ZjZlYTQ3
11
+ NTA0YzU4OTZiZmJmYjhlZjUxNjlhY2NlNzNiMzczNWQ3NjY3NjA=
12
12
  data.tar.gz: !binary |-
13
- OTA0NzRjYjJhNTc2OTg0YjliYmU3ZDFhYWZjYmZiYzI0ZWYwZWQyNDcxNmFj
14
- MzkzN2E0MTFlMmRiZjAwMWUxOGQzN2EyZmUzMWJkYTk2NGM4NTgxY2FhY2Iz
15
- NGE0YjgzYWE5MmU5OTY5N2E1NzUyZjU5ZGVmNDUzNGYzYWQ1Yzg=
13
+ ZGQ5OGVmNGM2NjUxMjIzM2RlNjdlNjFlN2VhNTJjODRmM2ZhNjY1YzRiNzYw
14
+ MGVlNjQ0ZjU0ZmUzMjg2M2RkZGM2Yjc0MTgzZjVlODRmMWI2OTcyZmIyNjdj
15
+ YzdjYzE5ZGQ3NTczODNjMzk5YzJmNjUyNTUxYTFkYWI4MWUzOGY=
data/CHANGELOG CHANGED
@@ -1,3 +1,14 @@
1
+ 1.4.19 (2014-07-06)
2
+ * Fixed: BUILDR-700 - Ensure SNAPSHOT artifacts, constructed using the
3
+ download(artifact('group:artifact:jar:1-SNAPSHOT') =>
4
+ 'http://example.com/...') construct will correctly download the
5
+ artifacts from configured URL.
6
+ * Fixed: BUILDR-700 - Fix bug where buildr was truncating SNAPSHOT files
7
+ that had not changed since last update check and HTTP was returning
8
+ "HTTP Not Modified" status.
9
+ * Fixed: Fix bug introduced in 1.4.18 version of custom_pom addon where
10
+ poms are created for artifacts that have a classifier.
11
+
1
12
  1.4.18 (2014-06-24)
2
13
  * Fixed: BUILDR-699 - Update the custom_pom addon to avoid failure when
3
14
  used with zip packages.
@@ -250,7 +250,7 @@ module Buildr
250
250
 
251
251
  after_define do |project|
252
252
  project.packages.each do |pkg|
253
- if pkg.type.to_s == 'jar' && !pkg.classifier
253
+ if pkg.type.to_s == 'jar' && pkg.classifier.nil?
254
254
  class << pkg
255
255
  def pom_xml
256
256
  self.pom.content
@@ -18,16 +18,28 @@ The source code is included in both source and binary distribution, the Gem dist
18
18
 
19
19
  h2(#dist). Binaries and Source Code
20
20
 
21
+ h3. buildr 1.4.18 (2014-06-24)
22
+
23
+ |_. Package |_. MD5 Checksum |_. PGP |
24
+ | "buildr-1.4.18-java.gem":http://www.apache.org/dyn/closer.cgi/buildr/1.4.18/buildr-1.4.18-java.gem | "e71adb986a066d0238325dabdfe577ff":http://www.apache.org/dist/buildr/1.4.18/buildr-1.4.18-java.gem.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.18/buildr-1.4.18-java.gem.asc |
25
+ | "buildr-1.4.18-x86-mswin32.gem":http://www.apache.org/dyn/closer.cgi/buildr/1.4.18/buildr-1.4.18-x86-mswin32.gem | "322d4008c2b8ca45e7e78e0248b35d4a":http://www.apache.org/dist/buildr/1.4.18/buildr-1.4.18-x86-mswin32.gem.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.18/buildr-1.4.18-x86-mswin32.gem.asc |
26
+ | "buildr-1.4.18.gem":http://www.apache.org/dyn/closer.cgi/buildr/1.4.18/buildr-1.4.18.gem | "9bb3eb5085bd531ef7b2dc68baf847ad":http://www.apache.org/dist/buildr/1.4.18/buildr-1.4.18.gem.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.18/buildr-1.4.18.gem.asc |
27
+ | "buildr-1.4.18.tgz":http://www.apache.org/dyn/closer.cgi/buildr/1.4.18/buildr-1.4.18.tgz | "f6a74d86f76abf9e7de5e2c32ec59946":http://www.apache.org/dist/buildr/1.4.18/buildr-1.4.18.tgz.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.18/buildr-1.4.18.tgz.asc |
28
+ | "buildr-1.4.18.zip":http://www.apache.org/dyn/closer.cgi/buildr/1.4.18/buildr-1.4.18.zip | "3fba955436b4dd5f88e0f280d765f37b":http://www.apache.org/dist/buildr/1.4.18/buildr-1.4.18.zip.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.18/buildr-1.4.18.zip.asc |
29
+
30
+ p>. ("Release signing keys":http://www.apache.org/dist/buildr/1.4.18/KEYS)
31
+
32
+
21
33
  h3. buildr 1.4.17 (2014-05-25)
22
34
 
23
35
  |_. Package |_. MD5 Checksum |_. PGP |
24
- | "buildr-1.4.17-java.gem":http://www.apache.org/dyn/closer.cgi/buildr/1.4.17/buildr-1.4.17-java.gem | "0203c7bc6bbf816b58c50143816b2941":http://www.apache.org/dist/buildr/1.4.17/buildr-1.4.17-java.gem.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.17/buildr-1.4.17-java.gem.asc |
25
- | "buildr-1.4.17-x86-mswin32.gem":http://www.apache.org/dyn/closer.cgi/buildr/1.4.17/buildr-1.4.17-x86-mswin32.gem | "722889cf25682bf804be32ec318f72d7":http://www.apache.org/dist/buildr/1.4.17/buildr-1.4.17-x86-mswin32.gem.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.17/buildr-1.4.17-x86-mswin32.gem.asc |
26
- | "buildr-1.4.17.gem":http://www.apache.org/dyn/closer.cgi/buildr/1.4.17/buildr-1.4.17.gem | "8cdcc70fd881adb4608cfc21d9ffe570":http://www.apache.org/dist/buildr/1.4.17/buildr-1.4.17.gem.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.17/buildr-1.4.17.gem.asc |
27
- | "buildr-1.4.17.tgz":http://www.apache.org/dyn/closer.cgi/buildr/1.4.17/buildr-1.4.17.tgz | "5dcfaf71703dfb010b735af561555d3a":http://www.apache.org/dist/buildr/1.4.17/buildr-1.4.17.tgz.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.17/buildr-1.4.17.tgz.asc |
28
- | "buildr-1.4.17.zip":http://www.apache.org/dyn/closer.cgi/buildr/1.4.17/buildr-1.4.17.zip | "783d46ee8f198672815c408ea14851de":http://www.apache.org/dist/buildr/1.4.17/buildr-1.4.17.zip.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.17/buildr-1.4.17.zip.asc |
36
+ | "buildr-1.4.17-java.gem":http://archive.apache.org/dist/buildr/1.4.17/buildr-1.4.17-java.gem | "0203c7bc6bbf816b58c50143816b2941":http://archive.apache.org/dist/buildr/1.4.17/buildr-1.4.17-java.gem.md5 | "Sig":http://archive.apache.org/dist/buildr/1.4.17/buildr-1.4.17-java.gem.asc |
37
+ | "buildr-1.4.17-x86-mswin32.gem":http://archive.apache.org/dist/buildr/1.4.17/buildr-1.4.17-x86-mswin32.gem | "722889cf25682bf804be32ec318f72d7":http://archive.apache.org/dist/buildr/1.4.17/buildr-1.4.17-x86-mswin32.gem.md5 | "Sig":http://archive.apache.org/dist/buildr/1.4.17/buildr-1.4.17-x86-mswin32.gem.asc |
38
+ | "buildr-1.4.17.gem":http://archive.apache.org/dist/buildr/1.4.17/buildr-1.4.17.gem | "8cdcc70fd881adb4608cfc21d9ffe570":http://archive.apache.org/dist/buildr/1.4.17/buildr-1.4.17.gem.md5 | "Sig":http://archive.apache.org/dist/buildr/1.4.17/buildr-1.4.17.gem.asc |
39
+ | "buildr-1.4.17.tgz":http://archive.apache.org/dist/buildr/1.4.17/buildr-1.4.17.tgz | "5dcfaf71703dfb010b735af561555d3a":http://archive.apache.org/dist/buildr/1.4.17/buildr-1.4.17.tgz.md5 | "Sig":http://archive.apache.org/dist/buildr/1.4.17/buildr-1.4.17.tgz.asc |
40
+ | "buildr-1.4.17.zip":http://archive.apache.org/dist/buildr/1.4.17/buildr-1.4.17.zip | "783d46ee8f198672815c408ea14851de":http://archive.apache.org/dist/buildr/1.4.17/buildr-1.4.17.zip.md5 | "Sig":http://archive.apache.org/dist/buildr/1.4.17/buildr-1.4.17.zip.asc |
29
41
 
30
- p>. ("Release signing keys":http://www.apache.org/dist/buildr/1.4.17/KEYS)
42
+ p>. ("Release signing keys":http://archive.apache.org/dist/buildr/1.4.17/KEYS)
31
43
 
32
44
 
33
45
  h3. buildr 1.4.16 (2014-05-03)
@@ -46,6 +46,17 @@ So let's get started. You can "read the documentation online":quick_start.html,
46
46
 
47
47
  h2(#news). What's New
48
48
 
49
+ Highlights from Buildr 1.4.19 (2014-07-06)
50
+ * Fixed: BUILDR-700 - Ensure SNAPSHOT artifacts, constructed using the
51
+ download(artifact('group:artifact:jar:1-SNAPSHOT') =>
52
+ 'http://example.com/...') construct will correctly download the
53
+ artifacts from configured URL.
54
+ * Fixed: BUILDR-700 - Fix bug where buildr was truncating SNAPSHOT files
55
+ that had not changed since last update check and HTTP was returning
56
+ "HTTP Not Modified" status.
57
+ * Fixed: Fix bug introduced in 1.4.18 version of custom_pom addon where
58
+ poms are created for artifacts that have a classifier.
59
+
49
60
  Highlights from Buildr 1.4.18 (2014-06-24)
50
61
  * Fixed: BUILDR-699 - Update the custom_pom addon to avoid failure when
51
62
  used with zip packages.
@@ -66,30 +77,6 @@ Highlights from Buildr 1.4.18 (2014-06-24)
66
77
  * Fixed: Fix the naming of css_lint addon file so it is made available
67
78
  as an addon.
68
79
 
69
- Highlights from Buildr 1.4.17 (2014-05-25)
70
-
71
- * Change: Supply a default xsl file for generating the checkstyle report.
72
- * Added: Add csslint tasks css_lint:xml and css_lint:html that support source code analysis of CSS files.
73
- * Added: Add scss_lint tasks scss_lint:xml and scss_lint:html that support source code analysis of SCSS files.
74
- * Added: Import 'buildr/custom_pom' addon to make it easier to build POMs for projects publishing to Maven Central.
75
- * Added: Add flag to allow non portable extensions in wsgen addon.
76
-
77
- Highlights from Buildr 1.4.16 (2014-05-03)
78
-
79
- * Added: Add the ability to generate a html report when using the
80
- jacoco addon. Extracted from the ode project.
81
- * Change: Improved the error handling when generating java from wsdl
82
- in the wsgen addon.
83
- * Change: Upgraded the Checkstyle plugin to use checkstyle 5.7 that
84
- improves Java 7 compatibility.
85
- * Change: Upgraded the PMD plugin to use pmd 5.0.5 which for Java 7
86
- compatibility.
87
- * Change: Improve the 'buildr/gwt' addon to easily support different
88
- gwt versions. Fix several bugs with the addon at the same
89
- time.
90
- * Fixed: Avoid crash in GPG addon if unable to create a pom
91
- for an artifact.
92
-
93
80
  This is a partial list -- see the "CHANGELOG":CHANGELOG for full details.
94
81
 
95
82
  h2(#notices). Credits & Notices
@@ -104,12 +104,46 @@ module Buildr #:nodoc:
104
104
  # Download to a file created by the task.
105
105
  fail unless args.keys.size == 1
106
106
  uri = URI.parse(args.values.first.to_s)
107
- file(args.keys.first.to_s).tap do |task|
108
- task.sources << uri
109
- task.enhance { uri.download task.name }
107
+ key = args.keys.first
108
+ if key.is_a?(Buildr::Artifact)
109
+ if RUBY_VERSION < '1.9.0'
110
+ class << key
111
+ def singleton_class
112
+ class << self
113
+ self
114
+ end
115
+ end
116
+
117
+ def define_singleton_method(name, &block)
118
+ self.singleton_class.send(:define_method, name, &block)
119
+ end
120
+ end
121
+ end
122
+
123
+ key.define_singleton_method(:source) do
124
+ uri
125
+ end
126
+ key.define_singleton_method(:download) do
127
+ trace "Downloading #{to_spec}"
128
+ begin
129
+ download_artifact(uri)
130
+ true
131
+ rescue URI::NotFoundError
132
+ false
133
+ rescue Exception => error
134
+ info error
135
+ trace error.backtrace.join("\n")
136
+ false
137
+ end || fail_download([])
138
+ end
139
+ key
140
+ else
141
+ file(key.to_s).tap do |task|
142
+ task.sources << uri
143
+ task.enhance { uri.download task.name }
144
+ end
110
145
  end
111
146
  end
112
-
113
147
  end
114
148
 
115
149
  # A file task that concatenates all its prerequisites to create a new file.
@@ -145,10 +145,12 @@ module URI
145
145
  modified = File.stat(target).mtime if File.exist?(target)
146
146
  temp = Tempfile.new(File.basename(target))
147
147
  temp.binmode
148
- read({:progress=>verbose}.merge(options || {}).merge(:modified=>modified)) { |chunk| temp.write chunk }
148
+ written = false
149
+ read({:progress=>verbose}.merge(options || {}).merge(:modified=>modified)) { |chunk| written = true; temp.write chunk }
149
150
  temp.close
150
151
  mkpath File.dirname(target)
151
- mv temp.path, target
152
+ # Only attempt to override file if it was actually written to, i.e. "HTTP Not Modified" was not returned.
153
+ mv temp.path, target if written
152
154
  when File
153
155
  read({:progress=>verbose}.merge(options || {}).merge(:modified=>target.mtime)) { |chunk| target.write chunk }
154
156
  target.flush
@@ -14,5 +14,5 @@
14
14
  # the License.
15
15
 
16
16
  module Buildr #:nodoc:
17
- VERSION = '1.4.18'.freeze
17
+ VERSION = '1.4.19'.freeze
18
18
  end
@@ -18,6 +18,7 @@ namespace 'metrics' do
18
18
  task 'saikuro' do
19
19
  gem 'atoulme-Saikuro'
20
20
  require 'saikuro'
21
+ require 'pathname'
21
22
  output_dir = File.expand_path(File.join(File.dirname(__FILE__), '..', '_reports', 'saikuro'))
22
23
  base_dir = Pathname.new(File.expand_path(File.join(File.dirname(__FILE__), '..')))
23
24
  rb_files = %w(lib addon).collect { |folder|
@@ -152,4 +152,4 @@ describe Buildr::CustomPom do
152
152
  end
153
153
  end
154
154
 
155
- end
155
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buildr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.18
4
+ version: 1.4.19
5
5
  platform: java
6
6
  authors:
7
7
  - Apache Buildr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-24 00:00:00.000000000 Z
11
+ date: 2014-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake