Skip to content

Commit ab5a041

Browse files
authored
Create maven.yml (#2)
* Create maven.yml
1 parent 955cbf5 commit ab5a041

3 files changed

Lines changed: 28 additions & 19 deletions

File tree

.github/workflows/maven.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This workflow will build a Java project with Maven
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+
name: Java CI with Maven
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up JDK 1.8
20+
uses: actions/setup-java@v1
21+
with:
22+
java-version: 1.8
23+
- name: Build with Maven
24+
env:
25+
TEST_CONFIGURATION_ACCESS_TOKEN: ${{ secrets.TEST_CONFIGURATION_ACCESS_TOKEN }}
26+
run: mvn -B package --file pom.xml

Makefile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
SRC=./src
22

33
.PHONY: all
4-
all: format build test
4+
all: format test
55

66
.PHONY: fix
77
fix:
@@ -15,10 +15,6 @@ format: fix
1515
format_tests:
1616
find $(SRC)/test -iname "*.java" -exec java -jar tools/google-java-format-1.8-all-deps.jar --aosp --replace {} \;
1717

18-
.PHONY: build
19-
build:
20-
mvn compile
21-
2218
.PHONY: test
2319
test:
24-
mvn test
20+
mvn -B package --file pom.xml

pom.xml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -134,19 +134,6 @@
134134
</execution>
135135
</executions>
136136
</plugin>
137-
<plugin>
138-
<groupId>org.apache.maven.plugins</groupId>
139-
<artifactId>maven-javadoc-plugin</artifactId>
140-
<version>2.10.4</version>
141-
<executions>
142-
<execution>
143-
<id>attach-javadocs</id>
144-
<goals>
145-
<goal>jar</goal>
146-
</goals>
147-
</execution>
148-
</executions>
149-
</plugin>
150137
<plugin>
151138
<groupId>org.apache.maven.plugins</groupId>
152139
<artifactId>maven-source-plugin</artifactId>

0 commit comments

Comments
 (0)