Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest JAR library on https://mvnrepository.com/ doesn't include OpenAPI classes #437

Open
micobarac opened this issue Mar 28, 2022 · 4 comments

Comments

@micobarac
Copy link

Swagger2Markup version:

<!-- https://mvnrepository.com/artifact/io.github.swagger2markup/swagger2markup -->
<dependency>
    <groupId>io.github.swagger2markup</groupId>
    <artifactId>swagger2markup</artifactId>
    <version>1.3.4</version>
</dependency>

Problem description:

OpenAPI2MarkupConverter.java and other OpenAPI classes are missing, which are present in master branch here in the repository.

@micobarac
Copy link
Author

micobarac commented Mar 28, 2022

Using https://jitpack.io to import latest swagger2markup into the project doesn't work either:

<repositories>
  <repository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
  </repository>
</repositories>
<dependency>
  <groupId>com.github.Swagger2Markup</groupId>
  <artifactId>swagger2markup</artifactId>
  <version>master-SNAPSHOT</version>
</dependency>
Build starting...
Start: Fri Mar 25 14:38:06 UTC 2022 94530ffea86d
Git:
v1.3.3-61-gaeaab37
commit aeaab37c8a3874f7fe197eebebe292973e382123
Author: rui 
Date:   Mon Feb 28 07:25:25 2022 -0500

    ci: remove travis (#434)
    

Init SDKMan
Found gradle
Gradle build script
Found gradle version: 5.6.3.
Using gradle wrapper
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dhttps.protocols=TLSv1.2
Downloading https://services.gradle.org/distributions/gradle-5.6.3-all.zip
.
Unzipping /home/jitpack/.gradle/wrapper/dists/gradle-5.6.3-all/7wpcz6s7ut7bllr9k6e1hazxc/gradle-5.6.3-all.zip to /home/jitpack/.gradle/wrapper/dists/gradle-5.6.3-all/7wpcz6s7ut7bllr9k6e1hazxc
Set executable permissions for: /home/jitpack/.gradle/wrapper/dists/gradle-5.6.3-all/7wpcz6s7ut7bllr9k6e1hazxc/gradle-5.6.3/bin/gradle

------------------------------------------------------------
Gradle 5.6.3
------------------------------------------------------------

Build time:   2019-10-18 00:28:36 UTC
Revision:     bd168bbf5d152c479186a897f2cea494b7875d13

Kotlin:       1.3.41
Groovy:       2.5.4
Ant:          Apache Ant(TM) version 1.9.14 compiled on March 12 2019
JVM:          1.8.0_292 (Private Build 25.292-b10)
OS:           Linux 4.18.0-25-generic amd64

0m4.321s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dhttps.protocols=TLSv1.2
openjdk version "1.8.0_292"
OpenJDK Runtime Environment (build 1.8.0_292-8u292-b10-0ubuntu1~16.04.1-b10)
OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)
Getting tasks: ./gradlew tasks --all
Tasks: install,publishToMavenLocal,
Found javadoc task
Running: ./gradlew clean -Pgroup=com.github.Swagger2Markup -Pversion=master-v0.2.2-gaeaab37-832 -xtest install

> Configure project :
org.ajoberstar.github-pages is deprecated will be removed in gradle-git 2.0.0. Users should migrate to org.ajoberstar.git-publish (https://github.com/ajoberstar/gradle-git-publish).

> Configure project :swagger2markup-documentation
org.ajoberstar.github-pages is deprecated will be removed in gradle-git 2.0.0. Users should migrate to org.ajoberstar.git-publish (https://github.com/ajoberstar/gradle-git-publish).

> Task :clean UP-TO-DATE
> Task :openapi2markup:clean UP-TO-DATE
> Task :swagger2markup:clean UP-TO-DATE
> Task :swagger2markup-asciidoc:clean UP-TO-DATE
> Task :swagger2markup-bom:clean UP-TO-DATE
> Task :swagger2markup-builder:clean UP-TO-DATE
> Task :swagger2markup-core:clean UP-TO-DATE
> Task :swagger2markup-documentation:clean UP-TO-DATE
> Task :swagger2markup-asciidoc:compileJava FAILED
9 actionable tasks: 1 executed, 8 up-to-date
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dhttps.protocols=TLSv1.2

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':swagger2markup-asciidoc:compileJava'.
> Could not target platform: 'Java SE 11' using tool chain: 'JDK 8 (1.8)'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dhttps.protocols=TLSv1.2
Archive: io.github.swagger2markup:swagger2markup-builder:2.0.0-SNAPSHOT
Archive: io.github.swagger2markup:swagger2markup-documentation:2.0.0-SNAPSHOT
Archive: io.github.swagger2markup:openapi2markup:2.0.0-SNAPSHOT
Archive: io.github.swagger2markup:swagger2markup-core:2.0.0-SNAPSHOT
Archive: io.github.swagger2markup:swagger2markup-asciidoc:2.0.0-SNAPSHOT
Archive: io.github.swagger2markup:swagger2markup-bom:2.0.0-SNAPSHOT
Archive: io.github.swagger2markup:swagger2markup:2.0.0-SNAPSHOT
Publication: io.github.swagger2markup:openapi2markup:2.0.0-SNAPSHOT
Publication: io.github.swagger2markup:swagger2markup:2.0.0-SNAPSHOT
Publication: io.github.swagger2markup:swagger2markup-asciidoc:2.0.0-SNAPSHOT
Publication: io.github.swagger2markup:swagger2markup-bom:2.0.0-SNAPSHOT
Publication: io.github.swagger2markup:swagger2markup-builder:2.0.0-SNAPSHOT
Publication: io.github.swagger2markup:swagger2markup-core:2.0.0-SNAPSHOT
Build tool exit code: 0
Looking for artifacts...
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dhttps.protocols=TLSv1.2
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dhttps.protocols=TLSv1.2
Looking for pom.xml in build directory and ~/.m2
Found artifact: io.github.swagger2markup:swagger2markup:2.0.0-SNAPSHOT
Found artifact: io.github.swagger2markup:swagger2markup-documentation:2.0.0-SNAPSHOT
Found artifact: io.github.swagger2markup:swagger2markup-builder:2.0.0-SNAPSHOT
Found artifact: io.github.swagger2markup:swagger2markup-bom:2.0.0-SNAPSHOT
Found artifact: io.github.swagger2markup:openapi2markup:2.0.0-SNAPSHOT
Found artifact: io.github.swagger2markup:swagger2markup-asciidoc:2.0.0-SNAPSHOT
Found artifact: io.github.swagger2markup:swagger2markup-core:2.0.0-SNAPSHOT
2022-03-25T14:38:30.161349911Z
Exit code: 0

⚠️ ERROR: No build artifacts found
Expected artifacts in: $HOME/.m2/repository/io/github/swagger2markup/swagger2markup-core/2.0.0-SNAPSHOT

@RobWin
Copy link
Member

RobWin commented Mar 29, 2022

The release 1.3.x does not support OpenAPI, only Swagger 1 & 2.
In order to use the master snapshot version you have to use:

<dependency>
  <groupId>io.github.swagger2markup</groupId>
  <artifactId>openapi2markup</artifactId>
  <version>master-SNAPSHOT</version>
</dependency>

@micobarac
Copy link
Author

Screenshot 2022-03-29 at 14 55 44

@micobarac
Copy link
Author

Bwt, I am using swagger2markup Maven plugin, which is way outdated :(.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants