Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
18325e4
Add attributes to some API calls; Add possibility to use Serializable…
zapelin Feb 6, 2018
7fc5556
GitLabProjectMember Permission Level (#287)
lamdav Feb 6, 2018
628e85d
Improved Apache 2.0 licensing Information (#286)
PhilMFischer Feb 6, 2018
fa97eaa
GitlabAPI.getNotes(...) call creating non api v4 compliant URL (#283)…
PhilMFischer Feb 6, 2018
feeffe2
Add some properties to GitlabUser and GitlabGroup (#291)
Mar 14, 2018
66032fa
Added a new method to create a new SSH key (#292)
bmbferreira Mar 14, 2018
0fac733
295 missing attributes in gitlab issue class (#296)
reznicekp Mar 14, 2018
119bd5a
Controlled Pagination for Gitlab Projects and Runners (#290)
lamdav Mar 14, 2018
455b84d
Update pom.xml (#294)
wimjongman Apr 24, 2018
58b0179
Fixed: GITHUB-297: The "connectTimeout" parameter is not configurable…
shaburov May 3, 2018
7344d37
Direct link to GitLab API documentation (#301)
manandbytes May 15, 2018
71b0387
Fix getting owned projects. Fix for issue #302. (#304)
OlgaMaciaszek Jun 12, 2018
3ae8e18
Update GitlabAPI.java (#303)
ericvergnaud Jun 12, 2018
efadbdd
Fixed pagination parameter and project parameter name (#307)
troizky Jun 29, 2018
5d16882
Sending namespace during fork (#300)
gecka Jun 29, 2018
d31ecf7
Add badge support (#311)
OlgaMaciaszek Aug 6, 2018
4274ac4
Upgrade gradle wrapper (#312)
OlgaMaciaszek Aug 6, 2018
878af28
Merge request discussion API implementation. (#313)
bonzani Sep 2, 2018
01924f8
Rename wrong mergeRequestId arguments to mergeRequestIid. (#315)
bonzani Sep 2, 2018
42627f1
Fix transfer project (#317)
OlgaMaciaszek Sep 2, 2018
6367b69
Add most merge request attributes. (#318)
bonzani Oct 4, 2018
839e391
API to set approvers (#319)
novalis Oct 4, 2018
8ccd7ec
Events (#322)
novalis Oct 4, 2018
b6f4aca
[maven-release-plugin] prepare release 4.1.0
timols Oct 5, 2018
b287bca
[maven-release-plugin] prepare for next development iteration
timols Oct 5, 2018
8a1bdc5
Send discussion attributes as query parameters. (#323)
bonzani Oct 15, 2018
6567a9b
Add api to fetch single tag (#326)
shijinglu Nov 20, 2018
0406a7f
Improvements on GitlabProjectHook (#328)
ronerjr Nov 20, 2018
504ec85
adjusting getters return type (#330)
wiliamjcj Dec 17, 2018
b17095c
Change type of GitlabTag commit property to GitlabCommit. (#336)
bonzani Feb 14, 2019
9a9e527
Throw UncheckedIOException instead of generic RuntimeException (#339)
islandsvinur Mar 13, 2019
f62fa57
update GitlabMergeRequest prop changesCount to string (#338)
idefav Mar 13, 2019
f03eedf
Add possibility to use previous versions of rest api (#333)
yaggg Mar 13, 2019
d12fc1d
The pagination argument was ignored (#344)
ctabin Aug 13, 2019
87a4a46
Files containing spaces in their path are wrongly encoded (#331) (#332)
slauriere Aug 13, 2019
66de6d1
Add missing fields to GitlabPipeline (#352)
tristanlins Aug 13, 2019
e46d665
Add methods GitlabAPI#getProjectPipeline(...) (#353)
tristanlins Aug 13, 2019
8695064
Add params 'path' and 'name' for create fork (#354)
Aug 13, 2019
5010dc7
Add ability to run pipelines (similar to webinterface Pipelines -> Ru…
SammyVimes Aug 14, 2019
198ea33
due date deserialization fix (#351)
durm Aug 14, 2019
6dcc241
Use Query classes to retrieve projects
tristanlins Jun 5, 2019
0955ca7
Add GitlabAPI#getProjectPipelines()
tristanlins Jun 5, 2019
39225d2
Merge pull request #349 from tristanlins/feature-specialized-queries
timols Aug 21, 2019
75cd3e4
when creating project add initialize_with_readme option (#347)
mustafayildirim Aug 21, 2019
dbf2e74
allow fetching groups w/o projects (#359)
novalis Aug 21, 2019
b6e8890
use Date to parse due_date for GitlabIssue like GitlabMilestone (#355)
pikuzi Oct 18, 2019
84f1706
Update gradle to version 5.5.1 (#358)
tristanlins Oct 18, 2019
2863c78
Get commits for merge request (#361)
rkpatel7 Oct 18, 2019
e6e1743
Revert changes to GitlabIssue and skip GitlabAPIUT unit test
timols Oct 26, 2019
a34d15c
Configure gpg plugin
timols Oct 26, 2019
a8cbd0c
[maven-release-plugin] prepare release 4.1.1
timols Oct 26, 2019
97b9147
[maven-release-plugin] prepare for next development iteration
timols Oct 26, 2019
8809140
Bump jackson-databind from 2.5.3 to 2.9.10.5 (#377)
dependabot[bot] Jul 8, 2020
4982cfb
hooks api support pagination (#376)
cpp597455873 Jul 8, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sudo: required
services:
- docker
jdk:
- oraclejdk8
- openjdk8
install:
- ./mvnw -B -q -Pdocker-gitlab dependency:go-offline verify -DskipTests -Ddocker.skip
script:
Expand Down
2 changes: 2 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Current
Fixed: GITHUB-297: The "connectTimeout" parameter is not configurable.
215 changes: 202 additions & 13 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,13 +1,202 @@
Copyright 2013-2014 Timothy Olshansky

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
13 changes: 13 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2013-2014 Timothy Olshansky

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Maven Central](https://img.shields.io/maven-central/v/org.gitlab/java-gitlab-api.svg)](http://mvnrepository.com/artifact/org.gitlab/java-gitlab-api)
[![Build Status](https://travis-ci.org/timols/java-gitlab-api.svg?branch=master)](https://travis-ci.org/timols/java-gitlab-api)
A wrapper for the [Gitlab API](https://gitlab.org) written in Java.
A wrapper for the [Gitlab API](https://docs.gitlab.com/ee/api/) written in Java.

[Documentation](https://timols.github.io/java-gitlab-api) is available in the form of [Javadocs](https://timols.github.io/java-gitlab-api)
The major version indicates the API version of gitlab.
45 changes: 30 additions & 15 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
buildscript {
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
}

plugins {
Expand All @@ -14,36 +14,51 @@ plugins {
sourceCompatibility = 1.8
targetCompatibility = 1.8

group = 'org.gitlab'
version = '4.0.1-SNAPSHOT'
group = "org.gitlab"
version = "4.1.2-SNAPSHOT"

repositories {
mavenLocal()
mavenCentral()
}

dependencies {
compile(group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.5.+')
compile(group: 'commons-io', name: 'commons-io', version: '2.4')
testCompile(group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3')
testCompile(group: 'junit', name: 'junit', version: '4.12')
compile(group: "org.slf4j", name: "slf4j-api", version: "1.8.0-beta2")
compile(group: "commons-io", name: "commons-io", version: "2.4")
compile(group: "com.fasterxml.jackson.core", name: "jackson-databind", version: "2.5.+")
compile(group: "com.fasterxml.jackson.datatype", name: "jackson-datatype-jsr310", version: "2.5.1")
testCompile(group: "org.apache.logging.log4j", name: "log4j-api", version: "2.11.0")
testCompile(group: "org.apache.logging.log4j", name: "log4j-slf4j-impl", version: "2.11.0")
testCompile(group: "org.hamcrest", name: "hamcrest-all", version: "1.3")
testCompile(group: "org.mockito", name: "mockito-core", version: "2.18.3")
testCompile(group: "org.junit.jupiter", name: "junit-jupiter-api", version: "5.2.0")
testCompile(group: "junit", name: "junit", version: "4.12")
testRuntime(group: "org.junit.jupiter", name: "junit-jupiter-engine", version: "5.2.0")
testRuntime(group: "org.junit.vintage", name: "junit-vintage-engine", version: "5.2.0")
}

jar {
manifest { attributes 'Gradle-Version': gradle.gradleVersion }
manifest { attributes "Gradle-Version": gradle.gradleVersion }
from "LICENSE"
from "NOTICE"
}

install {
repositories.mavenInstaller { pom.artifactId = 'java-gitlab-api' }
repositories.mavenInstaller { pom.artifactId = "java-gitlab-api" }
}

task sourcesJar(type: Jar, dependsOn:classes) {
classifier = 'sources'
from sourceSets.main.allSource
classifier = "sources"
from sourceSets.main.allSource
from "LICENSE"
from "NOTICE"
}

artifacts { archives sourcesJar }

task wrapper(type: Wrapper) {
gradleVersion = '4.4'
test {
useJUnitPlatform {
includeEngines 'junit-jupiter'
includeEngines 'junit-vintage'
}
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 1 addition & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Wed May 13 23:55:44 CEST 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-bin.zip
Loading