This repository has been archived by the owner on Jul 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildfile
71 lines (55 loc) · 2.57 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
require 'buildr/git_auto_version'
require 'buildr/gpg'
require 'buildr/gwt'
Buildr::MavenCentral.define_publish_tasks(:profile_name => 'org.realityforge', :username => 'realityforge')
desc 'Arez-SpyTools: Arez utilities that enhance the spy capabilities'
define 'arez-spytools' do
project.group = 'org.realityforge.arez.spytools'
compile.options.source = '1.8'
compile.options.target = '1.8'
compile.options.lint = 'all,-processing,-serial'
project.compile.options.warnings = true
project.compile.options.other = %w(-Werror -Xmaxerrs 10000 -Xmaxwarns 10000)
project.version = ENV['PRODUCT_VERSION'] if ENV['PRODUCT_VERSION']
pom.add_apache_v2_license
pom.add_github_project('arez/arez-spytools')
pom.add_developer('realityforge', 'Peter Donald')
deps = artifacts(:jetbrains_annotations, :arez_core, :akasha, :jsinterop_base, :braincheck_core, :javax_annotation)
pom.include_transitive_dependencies += deps
pom.dependency_filter = Proc.new { |dep| deps.include?(dep[:artifact]) }
compile.with :javax_annotation,
:braincheck_core,
:grim_annotations,
:jetbrains_annotations,
:jsinterop_base,
:jsinterop_annotations,
:akasha,
:arez_core
compile.options[:processor_path] << [:arez_processor]
gwt_enhance(project)
package(:jar)
package(:sources)
package(:javadoc)
test.options[:properties] = { 'braincheck.environment' => 'development', 'arez.environment' => 'development' }
test.options[:java_args] = ['-ea']
test.using :testng
test.compile.with [:guiceyloops]
Buildr::BazelJ2cl.define_bazel_j2cl_test(project,
[project],
'arez.spytools.SpyToolsCompileTest',
_(:source, :test, :js, 'arez/spytools/SpyToolsCompileTest.js'),
:javax_annotation => true)
doc.
using(:javadoc,
:windowtitle => 'Arez SpyTools API Documentation',
:linksource => true,
:timestamp => false,
:link => %w(https://arez.github.io/api https://docs.oracle.com/javase/8/docs/api http://www.gwtproject.org/javadoc/latest/)
)
iml.excluded_directories << project._('tmp')
ipr.add_default_testng_configuration(:jvm_args => '-ea -Darez.environment=development')
ipr.add_component_from_artifact(:idea_codestyle)
ipr.add_code_insight_settings
ipr.add_nullable_manager
ipr.add_javac_settings('-Xlint:all,-processing,-serial -Werror -Xmaxerrs 10000 -Xmaxwarns 10000')
end