forked from sirthias/pegdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildfile
54 lines (44 loc) · 2.05 KB
/
buildfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
repositories.remote << 'http://repo1.maven.org/maven2'
repositories.remote << 'http://scala-tools.org/repo-releases'
#repositories.remote << 'http://scala-tools.org/repo-snapshots'
upload_to = 'scala_tools_releases'
#upload_to = 'scala_tools_snapshots'
url, user, pass = Buildr.settings.user[upload_to].values_at('url', 'user', 'pass')
repositories.release_to = { :url => url, :username => user, :password => pass }
VERSION_NUMBER = '1.1.0'
desc 'The pegdown project'
define 'pegdown' do
project.version = VERSION_NUMBER
project.group = 'org.pegdown'
manifest['Built-By'] = 'Mathias'
manifest['Specification-Title'] = 'pegdown'
manifest['Specification-Version'] = VERSION_NUMBER
manifest['Specification-Vendor'] = 'pegdown.org'
manifest['Implementation-Title'] = 'pegdown'
manifest['Implementation-Version'] = "#{VERSION_NUMBER}"
manifest['Implementation-Vendor'] = 'pegdown.org'
manifest['Bundle-License'] = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
manifest['Bundle-Version'] = VERSION_NUMBER
manifest['Bundle-Description'] = 'pegdown, a Java 1.5+ library providing a clean and lightweight markdown processor'
manifest['Bundle-Name'] = 'pegdown'
manifest['Bundle-DocURL'] = 'http://www.pegdown.org'
manifest['Bundle-Vendor'] = 'pegdown.org'
manifest['Bundle-SymbolicName'] = 'org.pegdown'
meta_inf << file('NOTICE')
PARBOILED_VERSION = '1.0.2'
PARBOILED = [
"org.parboiled:parboiled-core:jar:#{PARBOILED_VERSION}",
"org.parboiled:parboiled-core:jar:sources:#{PARBOILED_VERSION}",
transitive("org.parboiled:parboiled-java:jar:#{PARBOILED_VERSION}"),
"org.parboiled:parboiled-java:jar:sources:#{PARBOILED_VERSION}"
]
JTIDY = "net.sf.jtidy:jtidy:jar:r938"
compile.with PARBOILED
compile.using :deprecation => true, :target => '1.5', :other => ['-encoding', 'UTF-8'], :lint=> 'all'
test.with JTIDY
test.using :testng
doc.using :windowtitle=>"pegdown #{VERSION_NUMBER} API"
package(:jar).pom.from file('pom.xml')
package :sources
package :javadoc
end