Giter Site home page Giter Site logo

Comments (10)

pathikrit avatar pathikrit commented on June 3, 2024

bintray is pretty stable (unless you are afraid I will delete my own repo from there - which I can do if it were in maven too):

resolvers += Resolver.bintrayRepo("pathikrit", "maven")
libraryDependencies += "com.github.pathikrit" %% "better-files" % version

But, sure, I will look into maven central sync too

from better-files.

francisdb avatar francisdb commented on June 3, 2024

"which I can do if it were in maven too" don't know what "in maven" means but maven central is as far as I know read only once something is added.

Anyway, I have seen in the past many examples of artifacts / repositories disappearing and I trust the Apache Software Foundation more than any other commercial company :-)

from better-files.

pathikrit avatar pathikrit commented on June 3, 2024

Not sure how to publish to maven from bintray. But, I published it to JCenter which is even more widely used than bintray: https://bintray.com/bintray/jcenter?filterByPkgName=better-files

You can do this now:

resolvers += Resolver.jcenterRepo

This is public repo not maintained by me and widely used (as you can see its built into sbt resolver) and is unlikely to disappear

from better-files.

francisdb avatar francisdb commented on June 3, 2024

More widely used? In the scala community for pushing out releases maybe. But for fetching packages maven central is the main source. There is a reason that central is included by default in sbt/maven/gradle/...

Setting up the sync is not that much work
https://bintray.com/docs/usermanual/uploads/uploads_syncingartifactswithmavencentral.html

from better-files.

fayimora avatar fayimora commented on June 3, 2024

+1 for Maven central sync

from better-files.

Elufimov avatar Elufimov commented on June 3, 2024

+1 for maven central.

from better-files.

fayimora avatar fayimora commented on June 3, 2024

So what's the verdict on this @pathikrit ?

from better-files.

pathikrit avatar pathikrit commented on June 3, 2024

I need some help.
I followed the instructions to release to maven from here:
http://www.cakesolutions.net/teamblogs/2012/01/28/publishing-sbt-projects-to-nexus

This is my build.sbt:
https://github.com/pathikrit/better-files/blob/master/build.sbt

However, when I tried to publish, it seems to work but I don't see it in Maven:

info] Loading global plugins from /Users/pbhowmick/.sbt/0.13/plugins
[info] Updating {file:/Users/pbhowmick/.sbt/0.13/plugins/}global-plugins...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Loading project definition from /Users/pbhowmick/Projects/better-files/project
[info] Updating {file:/Users/pbhowmick/Projects/better-files/project/}better-files-build...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[info] Set current project to root (in build file:/Users/pbhowmick/Projects/better-files/)
[info] Updating {file:/Users/pbhowmick/Projects/better-files/}root...
[info] Updating {file:/Users/pbhowmick/Projects/better-files/}core...
Waiting for lock on /Users/pbhowmick/.ivy2/.sbt.ivy.lock to be available...
[info] Resolving jline#jline;2.12.1 ...
[info] Done updating.
[info] Wrote /Users/pbhowmick/Projects/better-files/core/target/scala-2.11/better-files_2.11-2.13.0.pom
Waiting for lock on /Users/pbhowmick/.ivy2/.sbt.ivy.lock to be available...
[info] Resolving jline#jline;2.12.1 ...
[info] Done updating.
[info] :: delivering :: com.github.pathikrit#root_2.11;2.13.0 :: 2.13.0 :: release :: Thu Oct 15 12:46:18 PDT 2015
[info]  delivering ivy file to /Users/pbhowmick/Projects/better-files/target/scala-2.11/ivy-2.13.0.xml
[info] Updating {file:/Users/pbhowmick/Projects/better-files/}akka...
[info] Wrote /Users/pbhowmick/Projects/better-files/akka/target/scala-2.11/better-files-akka_2.11-2.13.0.pom
[info] Resolving jline#jline;2.12.1 ...
[info] Done updating.
Waiting for lock on /Users/pbhowmick/.ivy2/.sbt.ivy.lock to be available...
[info] :: delivering :: com.github.pathikrit#better-files_2.11;2.13.0 :: 2.13.0 :: release :: Thu Oct 15 12:46:19 PDT 2015
[info]  delivering ivy file to /Users/pbhowmick/Projects/better-files/core/target/scala-2.11/ivy-2.13.0.xml
[info] :: delivering :: com.github.pathikrit#better-files-akka_2.11;2.13.0 :: 2.13.0 :: release :: Thu Oct 15 12:46:19 PDT 2015
[info]  delivering ivy file to /Users/pbhowmick/Projects/better-files/akka/target/scala-2.11/ivy-2.13.0.xml
Please enter PGP passphrase (or ENTER to abort): *********
[info]  published better-files-akka_2.11 to https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/pathikrit/better-files-akka_2.11/2.13.0/better-files-akka_2.11-2.13.0.pom
[info]  published better-files-akka_2.11 to https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/pathikrit/better-files-akka_2.11/2.13.0/better-files-akka_2.11-2.13.0.jar.asc
[info]  published better-files-akka_2.11 to https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/pathikrit/better-files-akka_2.11/2.13.0/better-files-akka_2.11-2.13.0.jar
[info]  published better-files-akka_2.11 to https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/pathikrit/better-files-akka_2.11/2.13.0/better-files-akka_2.11-2.13.0-sources.jar
[info]  published better-files-akka_2.11 to https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/pathikrit/better-files-akka_2.11/2.13.0/better-files-akka_2.11-2.13.0.pom.asc
[info]  published better-files-akka_2.11 to https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/pathikrit/better-files-akka_2.11/2.13.0/better-files-akka_2.11-2.13.0-javadoc.jar
[info]  published better-files-akka_2.11 to https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/pathikrit/better-files-akka_2.11/2.13.0/better-files-akka_2.11-2.13.0-javadoc.jar.asc
[info]  published better-files-akka_2.11 to https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/pathikrit/better-files-akka_2.11/2.13.0/better-files-akka_2.11-2.13.0-sources.jar.asc
[info]  published better-files_2.11 to https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/pathikrit/better-files_2.11/2.13.0/better-files_2.11-2.13.0-javadoc.jar
[info]  published better-files_2.11 to https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/pathikrit/better-files_2.11/2.13.0/better-files_2.11-2.13.0-sources.jar.asc
[info]  published better-files_2.11 to https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/pathikrit/better-files_2.11/2.13.0/better-files_2.11-2.13.0-sources.jar
[info]  published better-files_2.11 to https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/pathikrit/better-files_2.11/2.13.0/better-files_2.11-2.13.0.pom
[info]  published better-files_2.11 to https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/pathikrit/better-files_2.11/2.13.0/better-files_2.11-2.13.0.jar.asc
[info]  published better-files_2.11 to https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/pathikrit/better-files_2.11/2.13.0/better-files_2.11-2.13.0.jar
[info]  published better-files_2.11 to https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/pathikrit/better-files_2.11/2.13.0/better-files_2.11-2.13.0-javadoc.jar.asc
[info]  published better-files_2.11 to https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/pathikrit/better-files_2.11/2.13.0/better-files_2.11-2.13.0.pom.asc

Release:

○ sbt sonatypeReleaseAll
[info] Loading global plugins from /Users/pbhowmick/.sbt/0.13/plugins
[info] Loading project definition from /Users/pbhowmick/Projects/better-files/project
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[info] Set current project to root (in build file:/Users/pbhowmick/Projects/better-files/)
[info] Nexus repository URL: https://oss.sonatype.org/service/local
[info] sonatypeProfileName = com.github.pathikrit
[info] Reading staging repository profiles...
[info] Reading staging profiles...
[info] Closing staging repository [comgithubpathikrit-1009] status:open, profile:com.github.pathikrit(3ce6558c41fb47)
[info] Activity open started:2015-10-15T19:59:00.418Z, stopped:2015-10-15T19:59:03.421Z
[info] repositoryCreated: id:comgithubpathikrit-1009, user:pathikrit, ip:73.222.34.242
[info] Activity close started:2015-10-15T19:59:46.273Z, stopped:
[info]   Evaluate: id:5e9e8e6f8d20a3, rule:sources-staging
[info]   Evaluate: javadoc-staging
[info]     Passed: javadoc-staging
[info]   Evaluate: signature-staging
[info]     Passed: signature-staging
[info]   Evaluate: sources-staging
[info]     Passed: sources-staging
[info]   Evaluate: checksum-staging
[info]     Passed: checksum-staging
[info]   Evaluate: pom-staging
[info]     Passed: pom-staging
[info]     Passed: id:5e9e8e6f8d20a3
[info]      email: to:[email protected]
[info] repositoryClosed: id:comgithubpathikrit-1009
[info] Closed successfully
[info] Promoting staging repository [comgithubpathikrit-1009] status:closed, profile:com.github.pathikrit(3ce6558c41fb47)
[info] Activity release started:2015-10-15T19:59:59.122Z, stopped:
[info]   Evaluate: id:5e9e8e6f8d20a3, rule:sources-staging
[info]   Evaluate: signature-staging
[info]     Passed: signature-staging
[info]   Evaluate: sources-staging
[info]     Passed: sources-staging
[info]   Evaluate: javadoc-staging
[info]     Passed: javadoc-staging
[info]   Evaluate: checksum-staging
[info]     Passed: checksum-staging
[info]   Evaluate: pom-staging
[info]     Passed: pom-staging
[info]     Passed: id:5e9e8e6f8d20a3
[info]   Evaluate: id:nx-internal-ruleset, rule:RepositoryWritePolicy
[info]   Evaluate: RepositoryWritePolicy
[info]     Passed: RepositoryWritePolicy
[info]     Passed: id:nx-internal-ruleset
[info]  copyItems: source:comgithubpathikrit-1009, target:releases
[info]      email: to:[email protected]
[info] repositoryReleased: id:comgithubpathikrit-1009, target:releases
[info] Promoted successfully
[info] Dropping staging repository [comgithubpathikrit-1009] status:released, profile:com.github.pathikrit(3ce6558c41fb47)
[info] Dropped successfully: comgithubpathikrit-1009

I see it here: https://oss.sonatype.org/#nexus-search;quick~better-files but I cannot search for it nor does sbt find it. What did I miss?

from better-files.

francisdb avatar francisdb commented on June 3, 2024

The files are there: https://repo1.maven.org/maven2/com/github/pathikrit/
Just takes some time for search to pick them up

Thanks a lot! 👍

from better-files.

Elufimov avatar Elufimov commented on June 3, 2024

@pathikrit Thanks for maven central!

from better-files.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.