diff --git a/README.md b/README.md index eaf0951e81f..58a7bacd8dd 100644 --- a/README.md +++ b/README.md @@ -44,15 +44,12 @@ The most recent version is being published to Maven central and can be used as a ```kotlin dependencies { - val cpgVersion = "8.0.0" + val cpgVersion = "9.0.2" - // if you want to include all published cpg modules - implementation("de.fraunhofer.aisec", "cpg", cpgVersion) - - // if you only want to use some of the cpg modules // use the 'cpg-core' module - // and then add the needed extra modules, such as Go and Python implementation("de.fraunhofer.aisec", "cpg-core", cpgVersion) + + // and then add the needed extra modules, such as Go and Python implementation("de.fraunhofer.aisec", "cpg-language-go", cpgVersion) implementation("de.fraunhofer.aisec", "cpg-language-python", cpgVersion) } diff --git a/cpg-all/build.gradle.kts b/cpg-all/build.gradle.kts deleted file mode 100644 index 46509d733c9..00000000000 --- a/cpg-all/build.gradle.kts +++ /dev/null @@ -1,31 +0,0 @@ -plugins { - id("cpg.library-conventions") - id("cpg.frontend-dependency-conventions") -} - -publishing { - publications { - named("cpg-all") { - pom { - artifactId = "cpg" // for legacy reasons (this will be renamed to cpg-core at some point) - name.set("Code Property Graph") - description.set("A simple library to extract a code property graph out of source code. It has support for multiple passes that can extend the analysis after the graph is constructed.") - url.set("https://github.com/Fraunhofer-AISEC/cpg") - } - } - } -} - -repositories { - maven { - setUrl("https://jitpack.io") - } -} - -dependencies { - // this exposes all of our (published) modules as dependency - api(projects.cpgConsole) - api(projects.cpgCore) - api(projects.cpgAnalysis) - api(projects.cpgNeo4j) -} diff --git a/docs/docs/GettingStarted/library.md b/docs/docs/GettingStarted/library.md index 74c13272d30..0acc3ee7489 100644 --- a/docs/docs/GettingStarted/library.md +++ b/docs/docs/GettingStarted/library.md @@ -13,7 +13,7 @@ You can use the CPG library in your kotlin project. ## 1. Add the CPG library to your dependencies First, get the required dependencies, e.g. by installing either the whole -project or selected submodules from mavencentral. +project or selected submodules from maven central. Here's an excerpt from a `build.gradle.kts` file: ```kotlin ... @@ -23,9 +23,7 @@ repositories { } dependencies { - implementation("de.fraunhofer.aisec:cpg:9.0.2") // Install everything - // OR - implementation("de.fraunhofer.aisec:cpg-core:9.0.2") // Only cpg-core + implementation("de.fraunhofer.aisec:cpg-core:9.0.2") // The core functionality implementation("de.fraunhofer.aisec:cpg-language-java:9.0.2") // Only the java language frontend ... } diff --git a/settings.gradle.kts b/settings.gradle.kts index a201d4f3ca2..4989903ffc6 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -6,7 +6,6 @@ plugins { enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS") -include(":cpg-all") include(":cpg-core") include(":cpg-analysis") include(":cpg-neo4j")