Skip to content

Commit 07fa0be

Browse files
JAVA-8427 migrate maven plugin to sdk repo
1 parent d94c7bc commit 07fa0be

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+5416
-1
lines changed
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: build
2+
3+
on: [push]
4+
5+
jobs:
6+
changelog:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: dangoslen/changelog-enforcer@v3
10+
build:
11+
name: Verify
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- uses: actions/setup-java@v4
17+
with:
18+
java-version: 11
19+
distribution: temurin
20+
21+
- uses: actions/setup-java@v4
22+
with:
23+
java-version: 17
24+
distribution: temurin
25+
26+
- uses: actions/setup-java@v4
27+
with:
28+
java-version: 21
29+
distribution: temurin
30+
31+
- name: Maven Verify
32+
env:
33+
CONTRAST__API__URL: ${{ secrets.CONTRAST__API__URL }}
34+
CONTRAST__API__USER_NAME: ${{ secrets.CONTRAST__API__USER_NAME }}
35+
CONTRAST__API__API_KEY: ${{ secrets.CONTRAST__API__API_KEY }}
36+
CONTRAST__API__SERVICE_KEY: ${{ secrets.CONTRAST__API__SERVICE_KEY }}
37+
CONTRAST__API__ORGANIZATION_ID: ${{ secrets.CONTRAST__API__ORGANIZATION_ID }}
38+
run: cd maven-plugin/ && ./mvnw --batch-mode -Pend-to-end-test verify

.github/workflows/build-sdk.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Cache Maven Wrapper
2626
uses: actions/cache@v2
2727
with:
28-
path: ./.mvn/wrapper/maven-wrapper.jar
28+
path: cd sdk/ ./.mvn/wrapper/maven-wrapper.jar
2929
key: ${{ runner.os }}-maven-wrapper-${{ hashFiles('./.mvn/wrapper/maven-wrapper.properties') }}
3030
restore-keys: ${{ runner.os }}-maven-wrapper
3131

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: publish
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
publish:
8+
permissions:
9+
contents: write
10+
environment: Maven Central
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Set up JDK 11
16+
uses: actions/setup-java@v2
17+
with:
18+
java-version: 11
19+
distribution: temurin
20+
server-id: ossrh
21+
server-username: OSSRH_USERNAME
22+
server-password: OSSRH_PASSWORD
23+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
24+
gpg-passphrase: GPG_PASSPHRASE
25+
26+
- name: Cache Maven Wrapper
27+
uses: actions/cache@v2
28+
with:
29+
path: cd maven-plugin/ && ./.mvn/wrapper/maven-wrapper.jar
30+
key: ${{ runner.os }}-maven-wrapper-${{ hashFiles('./.mvn/wrapper/maven-wrapper.properties') }}
31+
restore-keys: ${{ runner.os }}-maven-wrapper
32+
33+
- name: Cache Maven Repository
34+
uses: actions/cache@v2
35+
with:
36+
path: ~/.m2/repository
37+
key: ${{ runner.os }}-m2-repository-${{ hashFiles('**/pom.xml') }}
38+
restore-keys: ${{ runner.os }}-m2-repository
39+
40+
# See https://github.com/actions/checkout/issues/13
41+
- name: Configure Git User
42+
run: |
43+
git config --global user.name 'github-actions[bot]'
44+
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
45+
46+
- name: Maven Release (dry-run)
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
50+
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
51+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
52+
run: |
53+
cd maven-plugin/ && ./mvnw -DdryRun=true --batch-mode release:prepare release:perform -Dusername=$GITHUB_ACTOR -Dpassword=$GITHUB_TOKEN
54+
55+
- name: Maven Release
56+
env:
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58+
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
59+
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
60+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
61+
run: |
62+
cd maven-plugin/ && ./mvnw --batch-mode release:prepare release:perform -Dusername=$GITHUB_ACTOR -Dpassword=$GITHUB_TOKEN
File renamed without changes.

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Project
2+
*.private.env.json
23
/.idea
34
*.iml
45

gradle-plugin/.gitignore

+271
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,271 @@
1+
# Project
2+
*.private.env.json
3+
/.idea
4+
*.iml
5+
6+
# Maven
7+
8+
target/
9+
pom.xml.tag
10+
pom.xml.releaseBackup
11+
pom.xml.versionsBackup
12+
pom.xml.next
13+
release.properties
14+
dependency-reduced-pom.xml
15+
buildNumber.properties
16+
.mvn/timing.properties
17+
# https://github.com/takari/maven-wrapper#usage-without-binary-jar
18+
.mvn/wrapper/maven-wrapper.jar
19+
20+
21+
# Java
22+
23+
# Compiled class file
24+
*.class
25+
26+
# Log file
27+
*.log
28+
29+
# BlueJ files
30+
*.ctxt
31+
32+
# Mobile Tools for Java (J2ME)
33+
.mtj.tmp/
34+
35+
# Package Files #
36+
*.jar
37+
*.war
38+
*.nar
39+
*.ear
40+
*.zip
41+
*.tar.gz
42+
*.rar
43+
44+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
45+
hs_err_pid*
46+
47+
48+
# JetBrains
49+
50+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
51+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
52+
53+
# User-specific stuff
54+
.idea/**/workspace.xml
55+
.idea/**/tasks.xml
56+
.idea/**/usage.statistics.xml
57+
.idea/**/dictionaries
58+
.idea/**/shelf
59+
60+
# Generated files
61+
.idea/**/contentModel.xml
62+
63+
# Sensitive or high-churn files
64+
.idea/**/dataSources/
65+
.idea/**/dataSources.ids
66+
.idea/**/dataSources.local.xml
67+
.idea/**/sqlDataSources.xml
68+
.idea/**/dynamic.xml
69+
.idea/**/uiDesigner.xml
70+
.idea/**/dbnavigator.xml
71+
72+
# Gradle
73+
.idea/**/gradle.xml
74+
.idea/**/libraries
75+
76+
# Gradle and Maven with auto-import
77+
# When using Gradle or Maven with auto-import, you should exclude module files,
78+
# since they will be recreated, and may cause churn. Uncomment if using
79+
# auto-import.
80+
# .idea/artifacts
81+
# .idea/compiler.xml
82+
# .idea/jarRepositories.xml
83+
# .idea/modules.xml
84+
# .idea/*.iml
85+
# .idea/modules
86+
# *.iml
87+
# *.ipr
88+
89+
# CMake
90+
cmake-build-*/
91+
92+
# Mongo Explorer plugin
93+
.idea/**/mongoSettings.xml
94+
95+
# File-based project format
96+
*.iws
97+
98+
# IntelliJ
99+
out/
100+
101+
# mpeltonen/sbt-idea plugin
102+
.idea_modules/
103+
104+
# JIRA plugin
105+
atlassian-ide-plugin.xml
106+
107+
# Cursive Clojure plugin
108+
.idea/replstate.xml
109+
110+
# Crashlytics plugin (for Android Studio and IntelliJ)
111+
com_crashlytics_export_strings.xml
112+
crashlytics.properties
113+
crashlytics-build.properties
114+
fabric.properties
115+
116+
# Editor-based Rest Client
117+
.idea/httpRequests
118+
119+
# Android studio 3.1+ serialized cache file
120+
.idea/caches/build_file_checksums.ser
121+
122+
123+
# macOS
124+
125+
# General
126+
.DS_Store
127+
.AppleDouble
128+
.LSOverride
129+
130+
# Icon must end with two \r
131+
Icon
132+
133+
134+
# Thumbnails
135+
._*
136+
137+
# Files that might appear in the root of a volume
138+
.DocumentRevisions-V100
139+
.fseventsd
140+
.Spotlight-V100
141+
.TemporaryItems
142+
.Trashes
143+
.VolumeIcon.icns
144+
.com.apple.timemachine.donotpresent
145+
146+
# Directories potentially created on remote AFP share
147+
.AppleDB
148+
.AppleDesktop
149+
Network Trash Folder
150+
Temporary Items
151+
.apdisk
152+
153+
154+
# Windows
155+
156+
# Windows thumbnail cache files
157+
Thumbs.db
158+
Thumbs.db:encryptable
159+
ehthumbs.db
160+
ehthumbs_vista.db
161+
162+
# Dump file
163+
*.stackdump
164+
165+
# Folder config file
166+
[Dd]esktop.ini
167+
168+
# Recycle Bin used on file shares
169+
$RECYCLE.BIN/
170+
171+
# Windows Installer files
172+
*.cab
173+
*.msi
174+
*.msix
175+
*.msm
176+
*.msp
177+
178+
# Windows shortcuts
179+
*.lnk
180+
181+
182+
# Linux
183+
184+
*~
185+
186+
# temporary files which can be created if a process still has a handle open of a deleted file
187+
.fuse_hidden*
188+
189+
# KDE directory preferences
190+
.directory
191+
192+
# Linux trash folder which might appear on any partition or disk
193+
.Trash-*
194+
195+
# .nfs files are created when an open file is removed but is still being accessed
196+
.nfs*
197+
198+
199+
# Eclipse
200+
201+
.metadata
202+
bin/
203+
tmp/
204+
*.tmp
205+
*.bak
206+
*.swp
207+
*~.nib
208+
local.properties
209+
.settings/
210+
.loadpath
211+
.recommenders
212+
.classpath
213+
214+
# VSCode
215+
.vscode/
216+
217+
# External tool builders
218+
.externalToolBuilders/
219+
220+
# Locally stored "Eclipse launch configurations"
221+
*.launch
222+
223+
# PyDev specific (Python IDE for Eclipse)
224+
*.pydevproject
225+
226+
# CDT-specific (C/C++ Development Tooling)
227+
.cproject
228+
229+
# CDT- autotools
230+
.autotools
231+
232+
# Java annotation processor (APT)
233+
.factorypath
234+
235+
# PDT-specific (PHP Development Tools)
236+
.buildpath
237+
238+
# sbteclipse plugin
239+
.target
240+
241+
# Tern plugin
242+
.tern-project
243+
244+
# TeXlipse plugin
245+
.texlipse
246+
247+
# STS (Spring Tool Suite)
248+
.springBeans
249+
250+
# Code Recommenders
251+
.recommenders/
252+
253+
# Annotation Processing
254+
.apt_generated/
255+
.apt_generated_test/
256+
257+
# Scala IDE specific (Scala & Java development for Eclipse)
258+
.cache-main
259+
.scala_dependencies
260+
.worksheet
261+
262+
# Uncomment this line if you wish to ignore the project description file.
263+
# Typically, this file would be tracked if it contains build/dependency configurations:
264+
.project
265+
266+
# need gradle wrapper, and jar files are usually ignored
267+
!gradle-plugin/gradle/wrapper/gradle-wrapper.jar
268+
# Gradle build directories
269+
gradle-plugin/.gradle
270+
gradle-plugin/build
271+

0 commit comments

Comments
 (0)