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.DANS-KNAW:dans-dbf-lib:'
}
dependencies {
implementation("com.github.DANS-KNAW:dans-dbf-lib:")
}
<dependency>
<groupId>com.github.DANS-KNAW</groupId>
<artifactId>dans-dbf-lib</artifactId>
<version></version>
</dependency>
libraryDependencies += "com.github.DANS-KNAW" % "dans-dbf-lib" % ""
:dependencies [[com.github.DANS-KNAW/dans-dbf-lib ""]]
DANS DBF Library - Java classes to read, write and update DBF database files.
DANS DBF is a Java library for reading, writing and updating the contents of old DBF (dBase) databases. It was produced for the MIXED project. It is no longer maintained. You are however free to fork it, if you wish.
DANS DBF requires Java 1.5, or later, and has no dependencies.
The following program demonstrates how the library is used.
import nl.knaw.dans.common.dbflib.*;
import java.io.File;
import java.util.Iterator;
import java.util.List;
public class DansDbfDemo
{
public static void main(String []args) throws Exception
{
File dbfFile = new File("src/test/resources/dbase3plus/cars/cars.dbf");
Table table = new Table(dbfFile);
table.open(IfNonExistent.ERROR);
List<Field> fields = table.getFields();
Iterator<Record> it = table.recordIterator();
while (it.hasNext())
{
Record record = it.next();
for (Field field: fields)
{
System.out.print(field.getName());
System.out.print(": ");
System.out.print(field.getType());
System.out.print(": ");
System.out.println(record.getTypedValue(field.getName()));
}
}
table.close();
}
}
The project does contain configuration for building a Maven site. However, it is currently broken. At sourceforge there may still be a version of this site.