diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000000..ed4a6e7d8e --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,44 @@ +name: docs + +on: + push: + branches: [master] + pull_request: + +# allow the workflow to publish to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: pages-${{ github.event_name }} + cancel-in-progress: false + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: actions/setup-java@v6 + with: + distribution: temurin + java-version: "17" + cache: maven + # the javadoc of aima-core, published as the project site + - run: mvn -B -q -f aima-core/pom.xml -Dtarget.jdk.version=17 -Ddoclint=none org.apache.maven.plugins:maven-javadoc-plugin:3.11.2:javadoc + - run: mv "$(dirname "$(find aima-core/target -path '*apidocs/index.html' | head -1)")" site + - uses: actions/upload-pages-artifact@v5 + with: + path: site + + deploy: + if: github.event_name == 'push' + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - id: deployment + uses: actions/deploy-pages@v5 diff --git a/README.md b/README.md index 5a365261e0..f4dbb8b8b2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# aima-java [![tests](https://github.com/aimacode/aima-java/actions/workflows/tests.yml/badge.svg)](https://github.com/aimacode/aima-java/actions/workflows/tests.yml) [![license](https://img.shields.io/github/license/aimacode/aima-java)](LICENSE) [![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/aimacode/aima-java/master) +# aima-java [![tests](https://github.com/aimacode/aima-java/actions/workflows/tests.yml/badge.svg)](https://github.com/aimacode/aima-java/actions/workflows/tests.yml) [![license](https://img.shields.io/github/license/aimacode/aima-java)](LICENSE) [![docs](https://github.com/aimacode/aima-java/actions/workflows/docs.yml/badge.svg)](https://aimacode.github.io/aima-java/) [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/aimacode/aima-java/master) Java code for the book *[Artificial Intelligence: A Modern Approach](https://aima.cs.berkeley.edu)*. diff --git a/aima-all/.classpath b/aima-all/.classpath deleted file mode 100644 index 81aadf4c0f..0000000000 --- a/aima-all/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/aima-all/.gitignore b/aima-all/.gitignore deleted file mode 100644 index 3b1174df87..0000000000 --- a/aima-all/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -/bin/ -/build/ -# Mac specific -.DS_Store -.AppleDouble -.LSOverride diff --git a/aima-all/.project b/aima-all/.project deleted file mode 100644 index 7add99637a..0000000000 --- a/aima-all/.project +++ /dev/null @@ -1,17 +0,0 @@ - - - aima-all - - - - - - org.eclipse.jdt.core.javabuilder - - - - - - org.eclipse.jdt.core.javanature - - diff --git a/aima-all/README.md b/aima-all/README.md deleted file mode 100644 index f5c9bde385..0000000000 --- a/aima-all/README.md +++ /dev/null @@ -1,76 +0,0 @@ -# AIMA3e-Java aima-all -This project is used solely for creating combined releases of all of the AIMA3e projects. - -## Check List for creating an AIMA3e-Java Release - -### Create the Release -* Checkout the latest version of all the projects into a clean workspace. -* Ensure the revisions # in the build.properties files of each project are updated. -* Ensure the revision #s in the pom.xml file in aima-core is set to match the one in - its build.properties. -* Ensure the README file in each project is updated to reflect the release (i.e. - update the 'Current Release' section at a minimum). -* Commit and push changes to GitHib. -* run the `aima-all.release ant task` from the `aima-all` project. - -### Update the JavaDoc -* Upload the latest version of the aima-core Javadoc:
- This can be done by running the aima-core.makedocs ant task and replacing - the current generated docs in the `gh-pages` branch:
- `aima3e/javadoc/aima-core` -* push the changes to the `gh-pages` branch. - -### Update the Java Web Start Applications - -* Copy the .jar files generated by the aima-all.release ant task from:
- `aima-all/build/release/release`
- to the `gh-pages` branch:
- `aima3e/jars` -* Create a keystore which will be used to sign the copied jars, e.g.: -``` - > keytool -genkey -keystore c:/temp/aima3e.keystore -alias aima3e - - > Enter keystore password: - > Re-enter new password: - > What is your first and last name? - [Unknown]: - > What is the name of your organizational unit? - [Unknown]: AIMA-Java Open Source Project - > What is the name of your organization? - [Unknown]: AIMA-Java Open Source Project - > What is the name of your City or Locality? - [Unknown]: Mountain View - > What is the name of your State or Province? - [Unknown]: California - > What is the two-letter country code for this unit? - [Unknown]: US - > ... - [no]: yes -``` - * Sign each jar individually, e.g.: -``` - > jarsigner -keystore c:/temp/aima3e.keystore aima-core.jar aima3e - > jarsigner -keystore c:/temp/aima3e.keystore aima-gui.jar aima3e - > jarsigner -keystore c:/temp/aima3e.keystore aimax-osm.jar aima3e - > jarsigner -keystore c:/temp/aima3e.keystore commons-compress-1.1.jar aima3e -``` -* push the changes to the `gh-pages` branch. - -### Publish the Release to the Maven Central Repository -#### Relevant Background: -* [Deploying via Nexus Guide](http://central.sonatype.org/pages/ossrh-guide.html) -* [The Sonatype Central Portal](https://central.sonatype.com/) -* [The Complete Maven Reference](http://www.sonatype.com/books/mvnref-book/reference/public-book.html) -* [The Maven Central Repository](http://search.maven.org/) -* [Maven Home](http://maven.apache.org/) - -#### Publish to Maven Central -* Run this command in the aima-core project (currently only releasing this on Maven):
- `mvn -P sonatype-oss-release deploy` -* Close and Release. [Follow Releasing to Central from](http://central.sonatype.org/pages/ossrh-guide.html) - -## Publish the Release to the AIMA Website -* The .zip file of `aima-all/build/release` is no longer uploaded to the project's releases page; the example OSM maps of `aimax-osm`, once the release `aimax-osm-v3`, are in [aima-data/osm](https://github.com/aimacode/aima-data/tree/master/osm), i.e., in the `aima-data` submodule. -* Update the AIMA3e `README.md` to indicate the latest revision # (ensure Maven info also updated). -* Update the `AIMA3e Overview` wiki page with the latest release information. -* Send an email to team members letting them know the release has gone out the door. \ No newline at end of file diff --git a/aima-all/build.properties b/aima-all/build.properties deleted file mode 100644 index 428a6b690f..0000000000 --- a/aima-all/build.properties +++ /dev/null @@ -1,17 +0,0 @@ -# AIMA-ALL -# DO NOT MODIFY THIS FILE DIRECTLY -- use build.properties.local -# -# To use different values for properties in this file: -# a) Create a build.properties.local in the same directory as build.xml -# or -# b) Use -Dproperty=value arguments - -# VERSION -aima-all.version=1.9.1-Search-and-JavaFX -# DIRECTORY LOCATIONS -path.to.aima-core.project=../aima-core -path.to.aima-gui.project=../aima-gui -path.to.aimax-osm.project=../aimax-osm -# TEMP DIRECTORIES FOR RELEASING -aima-all.dir.build=${aima-all.basedir}/build -aima-all.dir.build.release=${aima-all.dir.build}/release \ No newline at end of file diff --git a/aima-all/build.xml b/aima-all/build.xml deleted file mode 100644 index 4f978bf443..0000000000 --- a/aima-all/build.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -