Skip to content

Commit

Permalink
Remove support for building with Maven
Browse files Browse the repository at this point in the history
Dagger is now fully built using Bazel. The `mvn` binary is still required on travis in order to publish snapshots, and required by the release process, but not during typical development.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=150209632
  • Loading branch information
ronshapiro committed Mar 15, 2017
1 parent 0aab145 commit d116659
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 1,033 deletions.
9 changes: 2 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,7 @@ before_install:
- export PATH=$M2_HOME/bin:$PATH
- mvn --version

install:
- mvn -B -P!standard-with-extra-repos -U install clean --fail-never --quiet -DskipTests=true -Dinvoker.skip=true

script:
- bazel test --test_output errors //...
- mvn -B -P!standard-with-extra-repos -U verify --fail-at-end -Dsource.skip=true -Dmaven.javadoc.skip=true
script: bazel test --test_output errors //...

env:
global:
Expand All @@ -61,4 +56,4 @@ branches:

cache:
directories:
- $HOME/.m2
- $HOME/.cache/bazel
224 changes: 0 additions & 224 deletions compiler/pom.xml

This file was deleted.

85 changes: 0 additions & 85 deletions compiler/src/it/functional-tests/pom.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import static test.ReleasableReferencesComponents.Thing.thing;

import com.google.auto.value.AutoValue;
import dagger.Component;
import dagger.Module;
import dagger.Provides;
Expand Down Expand Up @@ -82,10 +83,7 @@ interface Parent extends ThingComponent {
Child child();
}

// TODO(ronshapiro): investigate the maven-compiler-plugin bug that is blocking javac from
// recognizing @AutoValue when it is imported instead of fully-qualified
// http://bugs.java.com/view_bug.do?bug_id=7101822
@com.google.auto.value.AutoValue
@AutoValue
abstract static class Thing {
abstract int count();

Expand Down

0 comments on commit d116659

Please sign in to comment.