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

Quoted variable #18

Closed
brunowego opened this issue Feb 28, 2019 · 3 comments
Closed

Quoted variable #18

brunowego opened this issue Feb 28, 2019 · 3 comments
Assignees

Comments

@brunowego
Copy link

How works with quoted variables?

export JDBC_URL="jdbc:hive2://[domain]:10000/default;principal=hive/_HOST@[REALM]"
String url = JDBC_URL;
Connection conn = DriverManager.getConnection(url.replace("\"", ""));
@cdimascio
Copy link
Owner

@brunowego thanks for the issue. I will have a look at this tomorrow

cdimascio pushed a commit that referenced this issue Mar 1, 2019
@cdimascio
Copy link
Owner

@brunowego Quoted variables are now handled appropriately in v4.0.1
It can take a day or so to propagate to MavenCentral.

If you need it more quickly you can resolve to JCenter with the following:
Gradle

repositories {
    maven {
        url  "https://dl.bintray.com/cdimascio/maven" 
    }
}

Maven
settings.xml file

<?xml version="1.0" encoding="UTF-8" ?>
<settings xsi:schemaLocation='http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd'
          xmlns='http://maven.apache.org/SETTINGS/1.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
    
    <profiles>
        <profile>
            <repositories>
                <repository>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                    <id>bintray-cdimascio-maven</id>
                    <name>bintray</name>
                    <url>https://dl.bintray.com/cdimascio/maven</url>
                </repository>
            </repositories>
            <pluginRepositories>
                <pluginRepository>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                    <id>bintray-cdimascio-maven</id>
                    <name>bintray-plugins</name>
                    <url>https://dl.bintray.com/cdimascio/maven</url>
                </pluginRepository>
            </pluginRepositories>
            <id>bintray</id>
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>bintray</activeProfile>
    </activeProfiles>
</settings>

@cdimascio cdimascio self-assigned this Mar 1, 2019
@brunowego
Copy link
Author

Thanks a lot @cdimascio!

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