paulschwarz / spring-dotenv

Provides a Dotenv property source for Spring
MIT License
325 stars 23 forks source link

Publish to Maven Central Repository? #1

Closed lawrencehlee closed 4 years ago

lawrencehlee commented 4 years ago

Hi Paul,

I love the library, and I'm trying to integrate it with a Spring application at work. However, Github requires an access token to install packages, and in the context of my employer, which doesn't currently use GitHub, that would require some bureaucratic movement (setting up accounts for individuals, for CI server, etc).

Is it possible to publish this package to the Maven Central Repository? I realize I'm basically asking you to do additional work so that I don't have to, so it's understandable if you think it's not worth the effort. But maybe this is also a blocker for other folks who are looking to use this package.

Thanks!

paulschwarz commented 4 years ago

@lawrencehlee please see https://github.com/paulschwarz/spring-dotenv/releases and https://bintray.com/paulschwarz/maven/spring-dotenv and let me know if you have any suggestions or improvements.

lawrencehlee commented 4 years ago

Yep, that works - thanks!

paulschwarz commented 4 years ago

You're welcome. Would you mind letting me know if there were any steps you needed to set up the dependency? Did you have to add a repository to your pom/gradle?

lawrencehlee commented 4 years ago

I just added the repository to the pom:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    ...
    <repositories>
        <repository>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <id>bintray-paulschwarz-maven</id>
            <name>bintray</name>
            <url>https://dl.bintray.com/paulschwarz/maven</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>me.paulschwarz</groupId>
            <artifactId>spring-dotenv</artifactId>
            <version>1.0.0</version>
            <type>pom</type>
        </dependency>
    </dependencies>
</project>
paulschwarz commented 3 years ago

@lawrencehlee https://mvnrepository.com/artifact/me.paulschwarz/spring-dotenv