Skip to content

Commit 35d00c4

Browse files
author
David Staheli
committed
Initial commit of code
1 parent 24b6314 commit 35d00c4

11 files changed

Lines changed: 385 additions & 0 deletions

File tree

.vsts-ci-gradle.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Gradle
2+
# Build your Java projects and run tests with Gradle using a Gradle wrapper script.
3+
# Add steps that analyze code, save build artifacts, deploy, and more:
4+
# https://docs.microsoft.com/vsts/pipelines/languages/java
5+
6+
pool:
7+
vmImage: 'Ubuntu 16.04'
8+
9+
steps:
10+
- task: Gradle@2
11+
inputs:
12+
workingDirectory: ''
13+
gradleWrapperFile: 'gradlew'
14+
gradleOptions: '-Xmx3072m'
15+
javaHomeOption: 'JDKVersion'
16+
jdkVersionOption: '1.10'
17+
jdkArchitectureOption: 'x64'
18+
publishJUnitResults: true
19+
testResultsFiles: '**/TEST-*.xml'
20+
tasks: 'build'
21+
22+
- task: CopyFiles@2
23+
inputs:
24+
contents: '**/*.jar'
25+
targetFolder: '$(build.artifactStagingDirectory)'
26+
27+
- task: PublishBuildArtifacts@1
28+
inputs:
29+
artifactName: jars
30+
publishLocation: container
31+
pathToPublish: '$(build.artifactStagingDirectory)'

.vsts-ci-maven.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Maven
2+
# Build your Java projects and run tests with Apache Maven.
3+
# Add steps that analyze code, save build artifacts, deploy, and more:
4+
# https://docs.microsoft.com/vsts/pipelines/languages/java
5+
6+
pool:
7+
vmImage: 'Ubuntu 16.04'
8+
9+
steps:
10+
- task: Maven@3
11+
inputs:
12+
mavenPomFile: 'pom.xml'
13+
mavenOptions: '-Xmx3072m'
14+
javaHomeOption: 'JDKVersion'
15+
jdkVersionOption: '1.10'
16+
jdkArchitectureOption: 'x64'
17+
publishJUnitResults: false
18+
testResultsFiles: '**/TEST-*.xml'
19+
goals: 'package'
20+
21+
- task: CopyFiles@2
22+
inputs:
23+
contents: '**/*.jar'
24+
targetFolder: '$(build.artifactStagingDirectory)'
25+
26+
- task: PublishBuildArtifacts@1
27+
inputs:
28+
artifactName: 'jars'
29+
publishLocation: 'container'
30+
pathToPublish: '$(build.artifactStagingDirectory)'

build.gradle

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apply plugin: 'java'
2+
apply plugin: 'maven'
3+
4+
group = 'helloworld'
5+
version = '1.0-SNAPSHOT'
6+
7+
description = """Hello world sample web app"""
8+
9+
sourceCompatibility = 1.5
10+
targetCompatibility = 1.5
11+
12+
repositories {
13+
maven { url "http://repo.maven.apache.org/maven2" }
14+
}
15+
16+
dependencies {
17+
testCompile group: 'junit', name: 'junit', version:'4.11'
18+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
zipStoreBase=GRADLE_USER_HOME
4+
zipStorePath=wrapper/dists
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-bin.zip

gradlew

Lines changed: 172 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 84 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>helloworld</groupId>
5+
<artifactId>helloworld</artifactId>
6+
<packaging>war</packaging>
7+
<version>1.0-SNAPSHOT</version>
8+
<name>Hello world sample web app</name>
9+
<url>http://maven.apache.org</url>
10+
<dependencies>
11+
<dependency>
12+
<groupId>junit</groupId>
13+
<artifactId>junit</artifactId>
14+
<version>4.11</version>
15+
<scope>test</scope>
16+
</dependency>
17+
</dependencies>
18+
<build>
19+
<finalName>helloworld</finalName>
20+
</build>
21+
</project>

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rootProject.name = 'helloworld'

src/main/webapp/WEB-INF/web.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!DOCTYPE web-app PUBLIC
2+
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
3+
"http://java.sun.com/dtd/web-app_2_3.dtd" >
4+
5+
<web-app>
6+
<display-name>Hello World Web Application</display-name>
7+
</web-app>

src/main/webapp/index.jsp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<html>
2+
<body>
3+
<h2>Hello World!</h2>
4+
</body>
5+
</html>

0 commit comments

Comments
 (0)