slok/algs4-mvn-repo


Maven repository for algorithms and data strcutures coursera course ( https://www.coursera.org/course/algs4partI )

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.slok:algs4-mvn-repo:'
	}
	dependencies {
		implementation("com.github.slok:algs4-mvn-repo:")
	}
	<dependency>
	    <groupId>com.github.slok</groupId>
	    <artifactId>algs4-mvn-repo</artifactId>
	    <version></version>
	</dependency>

                            
    libraryDependencies += "com.github.slok" % "algs4-mvn-repo" % ""
        
        

                            
    :dependencies [[com.github.slok/algs4-mvn-repo ""]]
        
        

Readme


#Note: Deprecated. Use this repository instead

These libraries aren't mine, this is only a maven repository. The copyright of this code belongs to the original authors not me

Maven repository for algorithms and data structures Coursera course

Maven setup

To add the libs to your project. Add this repository to <repositories> block:

<repository>
  <id>org.coursera.algs4</id>
  <name>Algs4 coursera course custom repository</name>
  <url>https://raw.github.com/slok/algs4-mvn-repo/master</url>
</repository>

And then the dependencies to <dependencies> block:

<dependency>
  <groupId>edu.princeton.cs.introcs</groupId>
  <artifactId>algs4-package</artifactId>
  <version>1.0</version>
</dependency>

<dependency>
  <groupId>edu.princeton.cs.introcs</groupId>
  <artifactId>stdlib-package</artifactId>
  <version>1.0</version>
</dependency>

Alternatively to use dependencies without packages use the following dependencies.

<dependency>
  <groupId>org.coursera.algs4.algs4</groupId>
  <artifactId>algs4</artifactId>
  <version>1.0</version>
</dependency>

<dependency>
  <groupId>org.coursera.algs4.stdlib</groupId>
  <artifactId>stdlib</artifactId>
  <version>1.0</version>
</dependency>

In August 2015 the authors have merged stdlib into algs4.jar and moved classes into 'edu.princeton.cs.algs4' package. To use this variant add the following dependency:

<dependency>
  <groupId>edu.princeton.cs.algs4</groupId>
  <artifactId>algs4</artifactId>
  <version>1.0</version>
</dependency>

Gradle setup

To use this dependency with Gradle build add the following line to the repositories section:

repositories {
	maven { url 'https://raw.github.com/slok/algs4-mvn-repo/master' }
}

and declare this compile time dependency:

dependencies {
	compile 'edu.princeton.cs.algs4:algs4:1.0'
}